diff options
Diffstat (limited to 'embassy-nrf/Cargo.toml')
| -rw-r--r-- | embassy-nrf/Cargo.toml | 64 |
1 files changed, 45 insertions, 19 deletions
diff --git a/embassy-nrf/Cargo.toml b/embassy-nrf/Cargo.toml index 362fabcf7..9a5fdc809 100644 --- a/embassy-nrf/Cargo.toml +++ b/embassy-nrf/Cargo.toml | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | [package] | 1 | [package] |
| 2 | name = "embassy-nrf" | 2 | name = "embassy-nrf" |
| 3 | version = "0.8.0" | 3 | version = "0.9.0" |
| 4 | edition = "2021" | 4 | edition = "2024" |
| 5 | license = "MIT OR Apache-2.0" | 5 | license = "MIT OR Apache-2.0" |
| 6 | description = "Embassy Hardware Abstraction Layer (HAL) for nRF series microcontrollers" | 6 | description = "Embassy Hardware Abstraction Layer (HAL) for nRF series microcontrollers" |
| 7 | keywords = ["embedded", "async", "nordic", "nrf", "embedded-hal"] | 7 | keywords = ["embedded", "async", "nordic", "nrf", "embedded-hal"] |
| @@ -23,8 +23,13 @@ build = [ | |||
| 23 | {target = "thumbv8m.main-none-eabihf", features = ["gpiote", "nrf5340-app-s", "time", "time-driver-rtc1"]}, | 23 | {target = "thumbv8m.main-none-eabihf", features = ["gpiote", "nrf5340-app-s", "time", "time-driver-rtc1"]}, |
| 24 | {target = "thumbv8m.main-none-eabihf", features = ["gpiote", "nrf5340-app-ns", "time", "time-driver-rtc1"]}, | 24 | {target = "thumbv8m.main-none-eabihf", features = ["gpiote", "nrf5340-app-ns", "time", "time-driver-rtc1"]}, |
| 25 | {target = "thumbv8m.main-none-eabihf", features = ["gpiote", "nrf5340-net", "time", "time-driver-rtc1"]}, | 25 | {target = "thumbv8m.main-none-eabihf", features = ["gpiote", "nrf5340-net", "time", "time-driver-rtc1"]}, |
| 26 | {target = "thumbv8m.main-none-eabihf", features = ["gpiote", "nrf54l15-app-s", "time", "time-driver-rtc1"]}, | 26 | {target = "thumbv8m.main-none-eabihf", features = ["gpiote", "nrf54l15-app-s", "time", "time-driver-grtc"]}, |
| 27 | {target = "thumbv8m.main-none-eabihf", features = ["gpiote", "nrf54l15-app-ns", "time", "time-driver-rtc1"]}, | 27 | {target = "thumbv8m.main-none-eabihf", features = ["gpiote", "nrf54l15-app-ns", "time", "time-driver-grtc"]}, |
| 28 | {target = "thumbv8m.main-none-eabihf", features = ["gpiote", "nrf54l10-app-s", "time", "time-driver-grtc"]}, | ||
| 29 | {target = "thumbv8m.main-none-eabihf", features = ["gpiote", "nrf54l10-app-ns", "time", "time-driver-grtc"]}, | ||
| 30 | {target = "thumbv8m.main-none-eabihf", features = ["gpiote", "nrf54l05-app-s", "time", "time-driver-grtc"]}, | ||
| 31 | {target = "thumbv8m.main-none-eabihf", features = ["gpiote", "nrf54l05-app-ns", "time", "time-driver-grtc"]}, | ||
| 32 | {target = "thumbv8m.main-none-eabihf", features = ["gpiote", "nrf54lm20-app-s", "time", "time-driver-grtc"]}, | ||
| 28 | {target = "thumbv7em-none-eabi", features = ["gpiote", "nrf52840", "time"]}, | 33 | {target = "thumbv7em-none-eabi", features = ["gpiote", "nrf52840", "time"]}, |
| 29 | {target = "thumbv7em-none-eabi", features = ["gpiote", "nrf52840", "time-driver-rtc1"]}, | 34 | {target = "thumbv7em-none-eabi", features = ["gpiote", "nrf52840", "time-driver-rtc1"]}, |
| 30 | {target = "thumbv7em-none-eabi", features = ["gpiote", "nrf52840", "time", "time-driver-rtc1"]}, | 35 | {target = "thumbv7em-none-eabi", features = ["gpiote", "nrf52840", "time", "time-driver-rtc1"]}, |
| @@ -80,7 +85,10 @@ unstable-pac = [] | |||
| 80 | gpiote = [] | 85 | gpiote = [] |
| 81 | 86 | ||
| 82 | ## Use RTC1 as the time driver for `embassy-time`, with a tick rate of 32.768khz | 87 | ## Use RTC1 as the time driver for `embassy-time`, with a tick rate of 32.768khz |
| 83 | time-driver-rtc1 = ["_time-driver"] | 88 | time-driver-rtc1 = ["_time-driver", "embassy-time-driver?/tick-hz-32_768"] |
| 89 | |||
| 90 | ## Use GRTC (CC n=1, GRTC_1 irq) as the time driver for `embassy-time`, with a tick rate of 1 MHz | ||
| 91 | time-driver-grtc = ["_time-driver", "embassy-time-driver?/tick-hz-1_000_000"] | ||
| 84 | 92 | ||
| 85 | ## Enable embassy-net 802.15.4 driver | 93 | ## Enable embassy-net 802.15.4 driver |
| 86 | net-driver = ["_net-driver"] | 94 | net-driver = ["_net-driver"] |
| @@ -102,17 +110,17 @@ qspi-multiwrite-flash = [] | |||
| 102 | 110 | ||
| 103 | #! ### Chip selection features | 111 | #! ### Chip selection features |
| 104 | ## nRF51 | 112 | ## nRF51 |
| 105 | nrf51 = ["nrf-pac/nrf51", "_nrf51"] | 113 | nrf51 = ["nrf-pac/nrf51", "_nrf51", "_spi-v1"] |
| 106 | ## nRF52805 | 114 | ## nRF52805 |
| 107 | nrf52805 = ["nrf-pac/nrf52805", "_nrf52"] | 115 | nrf52805 = ["nrf-pac/nrf52805", "_nrf52", "_spi-v1"] |
| 108 | ## nRF52810 | 116 | ## nRF52810 |
| 109 | nrf52810 = ["nrf-pac/nrf52810", "_nrf52"] | 117 | nrf52810 = ["nrf-pac/nrf52810", "_nrf52", "_spi-v1"] |
| 110 | ## nRF52811 | 118 | ## nRF52811 |
| 111 | nrf52811 = ["nrf-pac/nrf52811", "_nrf52"] | 119 | nrf52811 = ["nrf-pac/nrf52811", "_nrf52", "_spi-v1"] |
| 112 | ## nRF52820 | 120 | ## nRF52820 |
| 113 | nrf52820 = ["nrf-pac/nrf52820", "_nrf52"] | 121 | nrf52820 = ["nrf-pac/nrf52820", "_nrf52", "_spi-v1"] |
| 114 | ## nRF52832 | 122 | ## nRF52832 |
| 115 | nrf52832 = ["nrf-pac/nrf52832", "_nrf52", "_nrf52832_anomaly_109"] | 123 | nrf52832 = ["nrf-pac/nrf52832", "_nrf52", "_nrf52832_anomaly_109", "_spi-v1"] |
| 116 | ## nRF52833 | 124 | ## nRF52833 |
| 117 | nrf52833 = ["nrf-pac/nrf52833", "_nrf52", "_gpio-p1"] | 125 | nrf52833 = ["nrf-pac/nrf52833", "_nrf52", "_gpio-p1"] |
| 118 | ## nRF52840 | 126 | ## nRF52840 |
| @@ -127,6 +135,16 @@ nrf5340-net = ["_nrf5340-net"] | |||
| 127 | nrf54l15-app-s = ["_nrf54l15-app", "_s", "_multi_wdt"] | 135 | nrf54l15-app-s = ["_nrf54l15-app", "_s", "_multi_wdt"] |
| 128 | ## nRF54L15 application core in Non-Secure mode | 136 | ## nRF54L15 application core in Non-Secure mode |
| 129 | nrf54l15-app-ns = ["_nrf54l15-app", "_ns"] | 137 | nrf54l15-app-ns = ["_nrf54l15-app", "_ns"] |
| 138 | ## nRF54L10 application core in Secure mode | ||
| 139 | nrf54l10-app-s = ["_nrf54l10-app", "_s", "_multi_wdt"] | ||
| 140 | ## nRF54L10 application core in Non-Secure mode | ||
| 141 | nrf54l10-app-ns = ["_nrf54l10-app", "_ns"] | ||
| 142 | ## nRF54L05 application core in Secure mode | ||
| 143 | nrf54l05-app-s = ["_nrf54l05-app", "_s", "_multi_wdt"] | ||
| 144 | ## nRF54L05 application core in Non-Secure mode | ||
| 145 | nrf54l05-app-ns = ["_nrf54l05-app", "_ns"] | ||
| 146 | ## nRF54LM20 application core in Secure mode | ||
| 147 | nrf54lm20-app-s = ["_nrf54lm20-app", "_s", "_multi_wdt"] | ||
| 130 | 148 | ||
| 131 | ## nRF9160 in Secure mode | 149 | ## nRF9160 in Secure mode |
| 132 | nrf9160-s = ["_nrf9160", "_s", "_nrf91"] | 150 | nrf9160-s = ["_nrf9160", "_s", "_nrf91"] |
| @@ -150,15 +168,21 @@ _nrf5340-net = ["_nrf5340", "nrf-pac/nrf5340-net"] | |||
| 150 | _nrf5340 = ["_gpio-p1", "_dppi"] | 168 | _nrf5340 = ["_gpio-p1", "_dppi"] |
| 151 | _nrf54l15-app = ["_nrf54l15", "nrf-pac/nrf54l15-app"] | 169 | _nrf54l15-app = ["_nrf54l15", "nrf-pac/nrf54l15-app"] |
| 152 | _nrf54l15 = ["_nrf54l", "_gpio-p1", "_gpio-p2"] | 170 | _nrf54l15 = ["_nrf54l", "_gpio-p1", "_gpio-p2"] |
| 153 | _nrf54l = ["_dppi"] | 171 | _nrf54l10-app = ["_nrf54l10", "nrf-pac/nrf54l10-app"] |
| 154 | 172 | _nrf54l10 = ["_nrf54l", "_gpio-p1", "_gpio-p2"] | |
| 155 | _nrf9160 = ["nrf-pac/nrf9160", "_dppi"] | 173 | _nrf54l05-app = ["_nrf54l05", "nrf-pac/nrf54l05-app"] |
| 156 | _nrf9120 = ["nrf-pac/nrf9120", "_dppi"] | 174 | _nrf54l05 = ["_nrf54l", "_gpio-p1", "_gpio-p2"] |
| 175 | _nrf54lm20-app = ["_nrf54lm20", "nrf-pac/nrf54lm20a-app"] | ||
| 176 | _nrf54lm20 = ["_nrf54l", "_gpio-p1", "_gpio-p2"] | ||
| 177 | _nrf54l = ["_dppi", "_grtc"] | ||
| 178 | |||
| 179 | _nrf9160 = ["nrf-pac/nrf9160", "_dppi", "_spi-v1"] | ||
| 180 | _nrf9120 = ["nrf-pac/nrf9120", "_dppi", "_spi-v1"] | ||
| 157 | _nrf52 = ["_ppi"] | 181 | _nrf52 = ["_ppi"] |
| 158 | _nrf51 = ["_ppi"] | 182 | _nrf51 = ["_ppi", "_spi-v1"] |
| 159 | _nrf91 = [] | 183 | _nrf91 = [] |
| 160 | 184 | ||
| 161 | _time-driver = ["dep:embassy-time-driver", "embassy-time-driver?/tick-hz-32_768", "dep:embassy-time-queue-utils", "embassy-embedded-hal/time"] | 185 | _time-driver = ["dep:embassy-time-driver", "dep:embassy-time-queue-utils", "embassy-embedded-hal/time"] |
| 162 | 186 | ||
| 163 | _net-driver = ["dep:embassy-net-driver-channel","dep:embassy-futures"] | 187 | _net-driver = ["dep:embassy-net-driver-channel","dep:embassy-futures"] |
| 164 | 188 | ||
| @@ -170,6 +194,8 @@ _ppi = [] | |||
| 170 | _dppi = [] | 194 | _dppi = [] |
| 171 | _gpio-p1 = [] | 195 | _gpio-p1 = [] |
| 172 | _gpio-p2 = [] | 196 | _gpio-p2 = [] |
| 197 | _spi-v1 = [] | ||
| 198 | _grtc = [] | ||
| 173 | 199 | ||
| 174 | # Errata workarounds | 200 | # Errata workarounds |
| 175 | _nrf52832_anomaly_109 = [] | 201 | _nrf52832_anomaly_109 = [] |
| @@ -197,10 +223,10 @@ embedded-io-async = { version = "0.6.1" } | |||
| 197 | rand-core-06 = { package = "rand_core", version = "0.6" } | 223 | rand-core-06 = { package = "rand_core", version = "0.6" } |
| 198 | rand-core-09 = { package = "rand_core", version = "0.9" } | 224 | rand-core-09 = { package = "rand_core", version = "0.9" } |
| 199 | 225 | ||
| 200 | nrf-pac = "0.1.0" | 226 | nrf-pac = { version = "0.2.0" } |
| 201 | 227 | ||
| 202 | defmt = { version = "1.0.1", optional = true } | 228 | defmt = { version = "1.0.1", optional = true } |
| 203 | bitflags = "2.4.2" | 229 | bitflags = "2.10.0" |
| 204 | log = { version = "0.4.14", optional = true } | 230 | log = { version = "0.4.14", optional = true } |
| 205 | cortex-m-rt = ">=0.6.15,<0.8" | 231 | cortex-m-rt = ">=0.6.15,<0.8" |
| 206 | cortex-m = "0.7.6" | 232 | cortex-m = "0.7.6" |
