diff options
| author | Ulf Lilleengen <[email protected]> | 2025-10-14 13:23:50 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2025-10-28 10:40:43 +0100 |
| commit | de5760cc81a00966c61d668c41f6e3e4709f0283 (patch) | |
| tree | 147a96fe4ae1e11b0eeef8ef61c84baaeb490255 /embassy-nrf/Cargo.toml | |
| parent | 5f0085fd89f3912de970d3496d481e537dc57422 (diff) | |
feat: improve nrf54 support using new nrf-pac
* Update nrf-pac to version that modifies nrf52 register layout to match
nrf54 to reduce the amount of cfg needed for nrf54 support.
* Make the following peripherals available on nrf54: twim, twis, spim,
spis, uart, buffered uarte, dppi, gpiote, pwm, saadc
* Add examples tested on the nrf54 dk
Some code is based on or copied from other pull requests, modified to match the new
nrf-pac layout.
Co-authored-by: Dmitry Tarnyagin <[email protected]>
Diffstat (limited to 'embassy-nrf/Cargo.toml')
| -rw-r--r-- | embassy-nrf/Cargo.toml | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/embassy-nrf/Cargo.toml b/embassy-nrf/Cargo.toml index 28f137d5c..08f4b280b 100644 --- a/embassy-nrf/Cargo.toml +++ b/embassy-nrf/Cargo.toml | |||
| @@ -104,17 +104,17 @@ qspi-multiwrite-flash = [] | |||
| 104 | 104 | ||
| 105 | #! ### Chip selection features | 105 | #! ### Chip selection features |
| 106 | ## nRF51 | 106 | ## nRF51 |
| 107 | nrf51 = ["nrf-pac/nrf51", "_nrf51"] | 107 | nrf51 = ["nrf-pac/nrf51", "_nrf51", "_spi-v1"] |
| 108 | ## nRF52805 | 108 | ## nRF52805 |
| 109 | nrf52805 = ["nrf-pac/nrf52805", "_nrf52"] | 109 | nrf52805 = ["nrf-pac/nrf52805", "_nrf52", "_spi-v1"] |
| 110 | ## nRF52810 | 110 | ## nRF52810 |
| 111 | nrf52810 = ["nrf-pac/nrf52810", "_nrf52"] | 111 | nrf52810 = ["nrf-pac/nrf52810", "_nrf52", "_spi-v1"] |
| 112 | ## nRF52811 | 112 | ## nRF52811 |
| 113 | nrf52811 = ["nrf-pac/nrf52811", "_nrf52"] | 113 | nrf52811 = ["nrf-pac/nrf52811", "_nrf52", "_spi-v1"] |
| 114 | ## nRF52820 | 114 | ## nRF52820 |
| 115 | nrf52820 = ["nrf-pac/nrf52820", "_nrf52"] | 115 | nrf52820 = ["nrf-pac/nrf52820", "_nrf52", "_spi-v1"] |
| 116 | ## nRF52832 | 116 | ## nRF52832 |
| 117 | nrf52832 = ["nrf-pac/nrf52832", "_nrf52", "_nrf52832_anomaly_109"] | 117 | nrf52832 = ["nrf-pac/nrf52832", "_nrf52", "_nrf52832_anomaly_109", "_spi-v1"] |
| 118 | ## nRF52833 | 118 | ## nRF52833 |
| 119 | nrf52833 = ["nrf-pac/nrf52833", "_nrf52", "_gpio-p1"] | 119 | nrf52833 = ["nrf-pac/nrf52833", "_nrf52", "_gpio-p1"] |
| 120 | ## nRF52840 | 120 | ## nRF52840 |
| @@ -154,10 +154,10 @@ _nrf54l15-app = ["_nrf54l15", "nrf-pac/nrf54l15-app"] | |||
| 154 | _nrf54l15 = ["_nrf54l", "_gpio-p1", "_gpio-p2"] | 154 | _nrf54l15 = ["_nrf54l", "_gpio-p1", "_gpio-p2"] |
| 155 | _nrf54l = ["_dppi"] | 155 | _nrf54l = ["_dppi"] |
| 156 | 156 | ||
| 157 | _nrf9160 = ["nrf-pac/nrf9160", "_dppi"] | 157 | _nrf9160 = ["nrf-pac/nrf9160", "_dppi", "_spi-v1"] |
| 158 | _nrf9120 = ["nrf-pac/nrf9120", "_dppi"] | 158 | _nrf9120 = ["nrf-pac/nrf9120", "_dppi", "_spi-v1"] |
| 159 | _nrf52 = ["_ppi"] | 159 | _nrf52 = ["_ppi"] |
| 160 | _nrf51 = ["_ppi"] | 160 | _nrf51 = ["_ppi", "_spi-v1"] |
| 161 | _nrf91 = [] | 161 | _nrf91 = [] |
| 162 | 162 | ||
| 163 | _time-driver = ["dep:embassy-time-driver", "embassy-time-driver?/tick-hz-32_768", "dep:embassy-time-queue-utils", "embassy-embedded-hal/time"] | 163 | _time-driver = ["dep:embassy-time-driver", "embassy-time-driver?/tick-hz-32_768", "dep:embassy-time-queue-utils", "embassy-embedded-hal/time"] |
| @@ -172,6 +172,7 @@ _ppi = [] | |||
| 172 | _dppi = [] | 172 | _dppi = [] |
| 173 | _gpio-p1 = [] | 173 | _gpio-p1 = [] |
| 174 | _gpio-p2 = [] | 174 | _gpio-p2 = [] |
| 175 | _spi-v1 = [] | ||
| 175 | 176 | ||
| 176 | # Errata workarounds | 177 | # Errata workarounds |
| 177 | _nrf52832_anomaly_109 = [] | 178 | _nrf52832_anomaly_109 = [] |
| @@ -199,7 +200,7 @@ embedded-io-async = { version = "0.6.1" } | |||
| 199 | rand-core-06 = { package = "rand_core", version = "0.6" } | 200 | rand-core-06 = { package = "rand_core", version = "0.6" } |
| 200 | rand-core-09 = { package = "rand_core", version = "0.9" } | 201 | rand-core-09 = { package = "rand_core", version = "0.9" } |
| 201 | 202 | ||
| 202 | nrf-pac = "0.1.0" | 203 | nrf-pac = { version = "0.1.0", git = "https://github.com/embassy-rs/nrf-pac.git", rev = "58198c23bce72edc10b4e1656d1b54441fc74e7c" } |
| 203 | 204 | ||
| 204 | defmt = { version = "1.0.1", optional = true } | 205 | defmt = { version = "1.0.1", optional = true } |
| 205 | bitflags = "2.4.2" | 206 | bitflags = "2.4.2" |
