diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-10-28 03:07:06 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-10-28 03:36:25 +0200 |
| commit | 663141b4e456bbfacaaff8decdba6840c76a136b (patch) | |
| tree | 8d151a795b008ab0791a6faa5dbd36e5b83522b5 /embassy-nrf/src/chips | |
| parent | c995a97f2032d329c2955c79054b7e466b0b423b (diff) | |
nrf: add initial nrf5340 support
Diffstat (limited to 'embassy-nrf/src/chips')
| -rw-r--r-- | embassy-nrf/src/chips/nrf5340_app.rs | 506 | ||||
| -rw-r--r-- | embassy-nrf/src/chips/nrf5340_net.rs | 353 | ||||
| -rw-r--r-- | embassy-nrf/src/chips/nrf9160.rs | 32 |
3 files changed, 886 insertions, 5 deletions
diff --git a/embassy-nrf/src/chips/nrf5340_app.rs b/embassy-nrf/src/chips/nrf5340_app.rs new file mode 100644 index 000000000..ca761893f --- /dev/null +++ b/embassy-nrf/src/chips/nrf5340_app.rs | |||
| @@ -0,0 +1,506 @@ | |||
| 1 | #[allow(unused_imports)] | ||
| 2 | #[rustfmt::skip] | ||
| 3 | pub mod pac { | ||
| 4 | // The nRF5340 has a secure and non-secure (NS) mode. | ||
| 5 | // To avoid cfg spam, we remove _ns or _s suffixes here. | ||
| 6 | |||
| 7 | pub use nrf5340_app_pac::{ | ||
| 8 | interrupt, | ||
| 9 | Interrupt, | ||
| 10 | Peripherals, | ||
| 11 | |||
| 12 | cache_s as cache, | ||
| 13 | cachedata_s as cachedata, | ||
| 14 | cacheinfo_s as cacheinfo, | ||
| 15 | clock_ns as clock, | ||
| 16 | comp_ns as comp, | ||
| 17 | cryptocell_s as cryptocell, | ||
| 18 | cti_s as cti, | ||
| 19 | ctrlap_ns as ctrlap, | ||
| 20 | dcnf_ns as dcnf, | ||
| 21 | dppic_ns as dppic, | ||
| 22 | egu0_ns as egu0, | ||
| 23 | ficr_s as ficr, | ||
| 24 | fpu_ns as fpu, | ||
| 25 | gpiote0_s as gpiote, | ||
| 26 | i2s0_ns as i2s0, | ||
| 27 | ipc_ns as ipc, | ||
| 28 | kmu_ns as kmu, | ||
| 29 | lpcomp_ns as lpcomp, | ||
| 30 | mutex_ns as mutex, | ||
| 31 | nfct_ns as nfct, | ||
| 32 | nvmc_ns as nvmc, | ||
| 33 | oscillators_ns as oscillators, | ||
| 34 | p0_ns as p0, | ||
| 35 | pdm0_ns as pdm0, | ||
| 36 | power_ns as power, | ||
| 37 | pwm0_ns as pwm0, | ||
| 38 | qdec0_ns as qdec0, | ||
| 39 | qspi_ns as qspi, | ||
| 40 | regulators_ns as regulators, | ||
| 41 | reset_ns as reset, | ||
| 42 | rtc0_ns as rtc0, | ||
| 43 | saadc_ns as saadc, | ||
| 44 | spim0_ns as spim0, | ||
| 45 | spis0_ns as spis0, | ||
| 46 | spu_s as spu, | ||
| 47 | tad_s as tad, | ||
| 48 | timer0_ns as timer0, | ||
| 49 | twim0_ns as twim0, | ||
| 50 | twis0_ns as twis0, | ||
| 51 | uarte0_ns as uarte0, | ||
| 52 | uicr_s as uicr, | ||
| 53 | usbd_ns as usbd, | ||
| 54 | usbregulator_ns as usbregulator, | ||
| 55 | vmc_ns as vmc, | ||
| 56 | wdt0_ns as wdt0, | ||
| 57 | }; | ||
| 58 | |||
| 59 | #[cfg(feature = "nrf5340-app-ns")] | ||
| 60 | pub use nrf5340_app_pac::{ | ||
| 61 | CLOCK_NS as CLOCK, | ||
| 62 | COMP_NS as COMP, | ||
| 63 | CTRLAP_NS as CTRLAP, | ||
| 64 | DCNF_NS as DCNF, | ||
| 65 | DPPIC_NS as DPPIC, | ||
| 66 | EGU0_NS as EGU0, | ||
| 67 | EGU1_NS as EGU1, | ||
| 68 | EGU2_NS as EGU2, | ||
| 69 | EGU3_NS as EGU3, | ||
| 70 | EGU4_NS as EGU4, | ||
| 71 | EGU5_NS as EGU5, | ||
| 72 | FPU_NS as FPU, | ||
| 73 | GPIOTE1_NS as GPIOTE1, | ||
| 74 | I2S0_NS as I2S0, | ||
| 75 | IPC_NS as IPC, | ||
| 76 | KMU_NS as KMU, | ||
| 77 | LPCOMP_NS as LPCOMP, | ||
| 78 | MUTEX_NS as MUTEX, | ||
| 79 | NFCT_NS as NFCT, | ||
| 80 | NVMC_NS as NVMC, | ||
| 81 | OSCILLATORS_NS as OSCILLATORS, | ||
| 82 | P0_NS as P0, | ||
| 83 | P1_NS as P1, | ||
| 84 | PDM0_NS as PDM0, | ||
| 85 | POWER_NS as POWER, | ||
| 86 | PWM0_NS as PWM0, | ||
| 87 | PWM1_NS as PWM1, | ||
| 88 | PWM2_NS as PWM2, | ||
| 89 | PWM3_NS as PWM3, | ||
| 90 | QDEC0_NS as QDEC0, | ||
| 91 | QDEC1_NS as QDEC1, | ||
| 92 | QSPI_NS as QSPI, | ||
| 93 | REGULATORS_NS as REGULATORS, | ||
| 94 | RESET_NS as RESET, | ||
| 95 | RTC0_NS as RTC0, | ||
| 96 | RTC1_NS as RTC1, | ||
| 97 | SAADC_NS as SAADC, | ||
| 98 | SPIM0_NS as SPIM0, | ||
| 99 | SPIM1_NS as SPIM1, | ||
| 100 | SPIM2_NS as SPIM2, | ||
| 101 | SPIM3_NS as SPIM3, | ||
| 102 | SPIM4_NS as SPIM4, | ||
| 103 | SPIS0_NS as SPIS0, | ||
| 104 | SPIS1_NS as SPIS1, | ||
| 105 | SPIS2_NS as SPIS2, | ||
| 106 | SPIS3_NS as SPIS3, | ||
| 107 | TIMER0_NS as TIMER0, | ||
| 108 | TIMER1_NS as TIMER1, | ||
| 109 | TIMER2_NS as TIMER2, | ||
| 110 | TWIM0_NS as TWIM0, | ||
| 111 | TWIM1_NS as TWIM1, | ||
| 112 | TWIM2_NS as TWIM2, | ||
| 113 | TWIM3_NS as TWIM3, | ||
| 114 | TWIS0_NS as TWIS0, | ||
| 115 | TWIS1_NS as TWIS1, | ||
| 116 | TWIS2_NS as TWIS2, | ||
| 117 | TWIS3_NS as TWIS3, | ||
| 118 | UARTE0_NS as UARTE0, | ||
| 119 | UARTE1_NS as UARTE1, | ||
| 120 | UARTE2_NS as UARTE2, | ||
| 121 | UARTE3_NS as UARTE3, | ||
| 122 | USBD_NS as USBD, | ||
| 123 | USBREGULATOR_NS as USBREGULATOR, | ||
| 124 | VMC_NS as VMC, | ||
| 125 | WDT0_NS as WDT0, | ||
| 126 | WDT1_NS as WDT1, | ||
| 127 | }; | ||
| 128 | |||
| 129 | #[cfg(feature = "nrf5340-app-s")] | ||
| 130 | pub use nrf5340_app_pac::{ | ||
| 131 | CACHEDATA_S as CACHEDATA, | ||
| 132 | CACHEINFO_S as CACHEINFO, | ||
| 133 | CACHE_S as CACHE, | ||
| 134 | CLOCK_S as CLOCK, | ||
| 135 | COMP_S as COMP, | ||
| 136 | CRYPTOCELL_S as CRYPTOCELL, | ||
| 137 | CTI_S as CTI, | ||
| 138 | CTRLAP_S as CTRLAP, | ||
| 139 | DCNF_S as DCNF, | ||
| 140 | DPPIC_S as DPPIC, | ||
| 141 | EGU0_S as EGU0, | ||
| 142 | EGU1_S as EGU1, | ||
| 143 | EGU2_S as EGU2, | ||
| 144 | EGU3_S as EGU3, | ||
| 145 | EGU4_S as EGU4, | ||
| 146 | EGU5_S as EGU5, | ||
| 147 | FICR_S as FICR, | ||
| 148 | FPU_S as FPU, | ||
| 149 | GPIOTE0_S as GPIOTE0, | ||
| 150 | I2S0_S as I2S0, | ||
| 151 | IPC_S as IPC, | ||
| 152 | KMU_S as KMU, | ||
| 153 | LPCOMP_S as LPCOMP, | ||
| 154 | MUTEX_S as MUTEX, | ||
| 155 | NFCT_S as NFCT, | ||
| 156 | NVMC_S as NVMC, | ||
| 157 | OSCILLATORS_S as OSCILLATORS, | ||
| 158 | P0_S as P0, | ||
| 159 | P1_S as P1, | ||
| 160 | PDM0_S as PDM0, | ||
| 161 | POWER_S as POWER, | ||
| 162 | PWM0_S as PWM0, | ||
| 163 | PWM1_S as PWM1, | ||
| 164 | PWM2_S as PWM2, | ||
| 165 | PWM3_S as PWM3, | ||
| 166 | QDEC0_S as QDEC0, | ||
| 167 | QDEC1_S as QDEC1, | ||
| 168 | QSPI_S as QSPI, | ||
| 169 | REGULATORS_S as REGULATORS, | ||
| 170 | RESET_S as RESET, | ||
| 171 | RTC0_S as RTC0, | ||
| 172 | RTC1_S as RTC1, | ||
| 173 | SAADC_S as SAADC, | ||
| 174 | SPIM0_S as SPIM0, | ||
| 175 | SPIM1_S as SPIM1, | ||
| 176 | SPIM2_S as SPIM2, | ||
| 177 | SPIM3_S as SPIM3, | ||
| 178 | SPIM4_S as SPIM4, | ||
| 179 | SPIS0_S as SPIS0, | ||
| 180 | SPIS1_S as SPIS1, | ||
| 181 | SPIS2_S as SPIS2, | ||
| 182 | SPIS3_S as SPIS3, | ||
| 183 | SPU_S as SPU, | ||
| 184 | TAD_S as TAD, | ||
| 185 | TIMER0_S as TIMER0, | ||
| 186 | TIMER1_S as TIMER1, | ||
| 187 | TIMER2_S as TIMER2, | ||
| 188 | TWIM0_S as TWIM0, | ||
| 189 | TWIM1_S as TWIM1, | ||
| 190 | TWIM2_S as TWIM2, | ||
| 191 | TWIM3_S as TWIM3, | ||
| 192 | TWIS0_S as TWIS0, | ||
| 193 | TWIS1_S as TWIS1, | ||
| 194 | TWIS2_S as TWIS2, | ||
| 195 | TWIS3_S as TWIS3, | ||
| 196 | UARTE0_S as UARTE0, | ||
| 197 | UARTE1_S as UARTE1, | ||
| 198 | UARTE2_S as UARTE2, | ||
| 199 | UARTE3_S as UARTE3, | ||
| 200 | UICR_S as UICR, | ||
| 201 | USBD_S as USBD, | ||
| 202 | USBREGULATOR_S as USBREGULATOR, | ||
| 203 | VMC_S as VMC, | ||
| 204 | WDT0_S as WDT0, | ||
| 205 | WDT1_S as WDT1, | ||
| 206 | }; | ||
| 207 | } | ||
| 208 | |||
| 209 | /// The maximum buffer size that the EasyDMA can send/recv in one operation. | ||
| 210 | pub const EASY_DMA_SIZE: usize = (1 << 16) - 1; | ||
| 211 | pub const FORCE_COPY_BUFFER_SIZE: usize = 1024; | ||
| 212 | |||
| 213 | embassy_hal_common::peripherals! { | ||
| 214 | // RTC | ||
| 215 | RTC0, | ||
| 216 | RTC1, | ||
| 217 | |||
| 218 | // WDT | ||
| 219 | WDT, | ||
| 220 | |||
| 221 | // UARTE, TWI & SPI | ||
| 222 | UARTETWISPI0, | ||
| 223 | UARTETWISPI1, | ||
| 224 | UARTETWISPI2, | ||
| 225 | UARTETWISPI3, | ||
| 226 | |||
| 227 | // SAADC | ||
| 228 | SAADC, | ||
| 229 | |||
| 230 | // PWM | ||
| 231 | PWM0, | ||
| 232 | PWM1, | ||
| 233 | PWM2, | ||
| 234 | PWM3, | ||
| 235 | |||
| 236 | // TIMER | ||
| 237 | TIMER0, | ||
| 238 | TIMER1, | ||
| 239 | TIMER2, | ||
| 240 | |||
| 241 | // GPIOTE | ||
| 242 | GPIOTE_CH0, | ||
| 243 | GPIOTE_CH1, | ||
| 244 | GPIOTE_CH2, | ||
| 245 | GPIOTE_CH3, | ||
| 246 | GPIOTE_CH4, | ||
| 247 | GPIOTE_CH5, | ||
| 248 | GPIOTE_CH6, | ||
| 249 | GPIOTE_CH7, | ||
| 250 | |||
| 251 | // PPI | ||
| 252 | PPI_CH0, | ||
| 253 | PPI_CH1, | ||
| 254 | PPI_CH2, | ||
| 255 | PPI_CH3, | ||
| 256 | PPI_CH4, | ||
| 257 | PPI_CH5, | ||
| 258 | PPI_CH6, | ||
| 259 | PPI_CH7, | ||
| 260 | PPI_CH8, | ||
| 261 | PPI_CH9, | ||
| 262 | PPI_CH10, | ||
| 263 | PPI_CH11, | ||
| 264 | PPI_CH12, | ||
| 265 | PPI_CH13, | ||
| 266 | PPI_CH14, | ||
| 267 | PPI_CH15, | ||
| 268 | PPI_CH16, | ||
| 269 | PPI_CH17, | ||
| 270 | PPI_CH18, | ||
| 271 | PPI_CH19, | ||
| 272 | PPI_CH20, | ||
| 273 | PPI_CH21, | ||
| 274 | PPI_CH22, | ||
| 275 | PPI_CH23, | ||
| 276 | PPI_CH24, | ||
| 277 | PPI_CH25, | ||
| 278 | PPI_CH26, | ||
| 279 | PPI_CH27, | ||
| 280 | PPI_CH28, | ||
| 281 | PPI_CH29, | ||
| 282 | PPI_CH30, | ||
| 283 | PPI_CH31, | ||
| 284 | |||
| 285 | PPI_GROUP0, | ||
| 286 | PPI_GROUP1, | ||
| 287 | PPI_GROUP2, | ||
| 288 | PPI_GROUP3, | ||
| 289 | PPI_GROUP4, | ||
| 290 | PPI_GROUP5, | ||
| 291 | |||
| 292 | // GPIO port 0 | ||
| 293 | P0_00, | ||
| 294 | P0_01, | ||
| 295 | P0_02, | ||
| 296 | P0_03, | ||
| 297 | P0_04, | ||
| 298 | P0_05, | ||
| 299 | P0_06, | ||
| 300 | P0_07, | ||
| 301 | P0_08, | ||
| 302 | P0_09, | ||
| 303 | P0_10, | ||
| 304 | P0_11, | ||
| 305 | P0_12, | ||
| 306 | P0_13, | ||
| 307 | P0_14, | ||
| 308 | P0_15, | ||
| 309 | P0_16, | ||
| 310 | P0_17, | ||
| 311 | P0_18, | ||
| 312 | P0_19, | ||
| 313 | P0_20, | ||
| 314 | P0_21, | ||
| 315 | P0_22, | ||
| 316 | P0_23, | ||
| 317 | P0_24, | ||
| 318 | P0_25, | ||
| 319 | P0_26, | ||
| 320 | P0_27, | ||
| 321 | P0_28, | ||
| 322 | P0_29, | ||
| 323 | P0_30, | ||
| 324 | P0_31, | ||
| 325 | |||
| 326 | // GPIO port 1 | ||
| 327 | P1_00, | ||
| 328 | P1_01, | ||
| 329 | P1_02, | ||
| 330 | P1_03, | ||
| 331 | P1_04, | ||
| 332 | P1_05, | ||
| 333 | P1_06, | ||
| 334 | P1_07, | ||
| 335 | P1_08, | ||
| 336 | P1_09, | ||
| 337 | P1_10, | ||
| 338 | P1_11, | ||
| 339 | P1_12, | ||
| 340 | P1_13, | ||
| 341 | P1_14, | ||
| 342 | P1_15, | ||
| 343 | } | ||
| 344 | |||
| 345 | impl_uarte!(UARTETWISPI0, UARTE0, SERIAL0); | ||
| 346 | impl_uarte!(UARTETWISPI1, UARTE1, SERIAL1); | ||
| 347 | impl_uarte!(UARTETWISPI2, UARTE2, SERIAL2); | ||
| 348 | impl_uarte!(UARTETWISPI3, UARTE3, SERIAL3); | ||
| 349 | |||
| 350 | impl_spim!(UARTETWISPI0, SPIM0, SERIAL0); | ||
| 351 | impl_spim!(UARTETWISPI1, SPIM1, SERIAL1); | ||
| 352 | impl_spim!(UARTETWISPI2, SPIM2, SERIAL2); | ||
| 353 | impl_spim!(UARTETWISPI3, SPIM3, SERIAL3); | ||
| 354 | |||
| 355 | impl_twim!(UARTETWISPI0, TWIM0, SERIAL0); | ||
| 356 | impl_twim!(UARTETWISPI1, TWIM1, SERIAL1); | ||
| 357 | impl_twim!(UARTETWISPI2, TWIM2, SERIAL2); | ||
| 358 | impl_twim!(UARTETWISPI3, TWIM3, SERIAL3); | ||
| 359 | |||
| 360 | impl_pwm!(PWM0, PWM0, PWM0); | ||
| 361 | impl_pwm!(PWM1, PWM1, PWM1); | ||
| 362 | impl_pwm!(PWM2, PWM2, PWM2); | ||
| 363 | impl_pwm!(PWM3, PWM3, PWM3); | ||
| 364 | |||
| 365 | impl_timer!(TIMER0, TIMER0, TIMER0); | ||
| 366 | impl_timer!(TIMER1, TIMER1, TIMER1); | ||
| 367 | impl_timer!(TIMER2, TIMER2, TIMER2); | ||
| 368 | |||
| 369 | impl_pin!(P0_00, 0, 0); | ||
| 370 | impl_pin!(P0_01, 0, 1); | ||
| 371 | impl_pin!(P0_02, 0, 2); | ||
| 372 | impl_pin!(P0_03, 0, 3); | ||
| 373 | impl_pin!(P0_04, 0, 4); | ||
| 374 | impl_pin!(P0_05, 0, 5); | ||
| 375 | impl_pin!(P0_06, 0, 6); | ||
| 376 | impl_pin!(P0_07, 0, 7); | ||
| 377 | impl_pin!(P0_08, 0, 8); | ||
| 378 | impl_pin!(P0_09, 0, 9); | ||
| 379 | impl_pin!(P0_10, 0, 10); | ||
| 380 | impl_pin!(P0_11, 0, 11); | ||
| 381 | impl_pin!(P0_12, 0, 12); | ||
| 382 | impl_pin!(P0_13, 0, 13); | ||
| 383 | impl_pin!(P0_14, 0, 14); | ||
| 384 | impl_pin!(P0_15, 0, 15); | ||
| 385 | impl_pin!(P0_16, 0, 16); | ||
| 386 | impl_pin!(P0_17, 0, 17); | ||
| 387 | impl_pin!(P0_18, 0, 18); | ||
| 388 | impl_pin!(P0_19, 0, 19); | ||
| 389 | impl_pin!(P0_20, 0, 20); | ||
| 390 | impl_pin!(P0_21, 0, 21); | ||
| 391 | impl_pin!(P0_22, 0, 22); | ||
| 392 | impl_pin!(P0_23, 0, 23); | ||
| 393 | impl_pin!(P0_24, 0, 24); | ||
| 394 | impl_pin!(P0_25, 0, 25); | ||
| 395 | impl_pin!(P0_26, 0, 26); | ||
| 396 | impl_pin!(P0_27, 0, 27); | ||
| 397 | impl_pin!(P0_28, 0, 28); | ||
| 398 | impl_pin!(P0_29, 0, 29); | ||
| 399 | impl_pin!(P0_30, 0, 30); | ||
| 400 | impl_pin!(P0_31, 0, 31); | ||
| 401 | |||
| 402 | impl_pin!(P1_00, 1, 0); | ||
| 403 | impl_pin!(P1_01, 1, 1); | ||
| 404 | impl_pin!(P1_02, 1, 2); | ||
| 405 | impl_pin!(P1_03, 1, 3); | ||
| 406 | impl_pin!(P1_04, 1, 4); | ||
| 407 | impl_pin!(P1_05, 1, 5); | ||
| 408 | impl_pin!(P1_06, 1, 6); | ||
| 409 | impl_pin!(P1_07, 1, 7); | ||
| 410 | impl_pin!(P1_08, 1, 8); | ||
| 411 | impl_pin!(P1_09, 1, 9); | ||
| 412 | impl_pin!(P1_10, 1, 10); | ||
| 413 | impl_pin!(P1_11, 1, 11); | ||
| 414 | impl_pin!(P1_12, 1, 12); | ||
| 415 | impl_pin!(P1_13, 1, 13); | ||
| 416 | impl_pin!(P1_14, 1, 14); | ||
| 417 | impl_pin!(P1_15, 1, 15); | ||
| 418 | |||
| 419 | impl_ppi_channel!(PPI_CH0, 0 => configurable); | ||
| 420 | impl_ppi_channel!(PPI_CH1, 1 => configurable); | ||
| 421 | impl_ppi_channel!(PPI_CH2, 2 => configurable); | ||
| 422 | impl_ppi_channel!(PPI_CH3, 3 => configurable); | ||
| 423 | impl_ppi_channel!(PPI_CH4, 4 => configurable); | ||
| 424 | impl_ppi_channel!(PPI_CH5, 5 => configurable); | ||
| 425 | impl_ppi_channel!(PPI_CH6, 6 => configurable); | ||
| 426 | impl_ppi_channel!(PPI_CH7, 7 => configurable); | ||
| 427 | impl_ppi_channel!(PPI_CH8, 8 => configurable); | ||
| 428 | impl_ppi_channel!(PPI_CH9, 9 => configurable); | ||
| 429 | impl_ppi_channel!(PPI_CH10, 10 => configurable); | ||
| 430 | impl_ppi_channel!(PPI_CH11, 11 => configurable); | ||
| 431 | impl_ppi_channel!(PPI_CH12, 12 => configurable); | ||
| 432 | impl_ppi_channel!(PPI_CH13, 13 => configurable); | ||
| 433 | impl_ppi_channel!(PPI_CH14, 14 => configurable); | ||
| 434 | impl_ppi_channel!(PPI_CH15, 15 => configurable); | ||
| 435 | impl_ppi_channel!(PPI_CH16, 16 => configurable); | ||
| 436 | impl_ppi_channel!(PPI_CH17, 17 => configurable); | ||
| 437 | impl_ppi_channel!(PPI_CH18, 18 => configurable); | ||
| 438 | impl_ppi_channel!(PPI_CH19, 19 => configurable); | ||
| 439 | impl_ppi_channel!(PPI_CH20, 20 => configurable); | ||
| 440 | impl_ppi_channel!(PPI_CH21, 21 => configurable); | ||
| 441 | impl_ppi_channel!(PPI_CH22, 22 => configurable); | ||
| 442 | impl_ppi_channel!(PPI_CH23, 23 => configurable); | ||
| 443 | impl_ppi_channel!(PPI_CH24, 24 => configurable); | ||
| 444 | impl_ppi_channel!(PPI_CH25, 25 => configurable); | ||
| 445 | impl_ppi_channel!(PPI_CH26, 26 => configurable); | ||
| 446 | impl_ppi_channel!(PPI_CH27, 27 => configurable); | ||
| 447 | impl_ppi_channel!(PPI_CH28, 28 => configurable); | ||
| 448 | impl_ppi_channel!(PPI_CH29, 29 => configurable); | ||
| 449 | impl_ppi_channel!(PPI_CH30, 30 => configurable); | ||
| 450 | impl_ppi_channel!(PPI_CH31, 31 => configurable); | ||
| 451 | |||
| 452 | impl_saadc_input!(P0_13, ANALOGINPUT0); | ||
| 453 | impl_saadc_input!(P0_14, ANALOGINPUT1); | ||
| 454 | impl_saadc_input!(P0_15, ANALOGINPUT2); | ||
| 455 | impl_saadc_input!(P0_16, ANALOGINPUT3); | ||
| 456 | impl_saadc_input!(P0_17, ANALOGINPUT4); | ||
| 457 | impl_saadc_input!(P0_18, ANALOGINPUT5); | ||
| 458 | impl_saadc_input!(P0_19, ANALOGINPUT6); | ||
| 459 | impl_saadc_input!(P0_20, ANALOGINPUT7); | ||
| 460 | |||
| 461 | pub mod irqs { | ||
| 462 | use crate::pac::Interrupt as InterruptEnum; | ||
| 463 | use embassy_macros::interrupt_declare as declare; | ||
| 464 | |||
| 465 | declare!(FPU); | ||
| 466 | declare!(CACHE); | ||
| 467 | declare!(SPU); | ||
| 468 | declare!(CLOCK_POWER); | ||
| 469 | declare!(SERIAL0); | ||
| 470 | declare!(SERIAL1); | ||
| 471 | declare!(SPIM4); | ||
| 472 | declare!(SERIAL2); | ||
| 473 | declare!(SERIAL3); | ||
| 474 | declare!(GPIOTE0); | ||
| 475 | declare!(SAADC); | ||
| 476 | declare!(TIMER0); | ||
| 477 | declare!(TIMER1); | ||
| 478 | declare!(TIMER2); | ||
| 479 | declare!(RTC0); | ||
| 480 | declare!(RTC1); | ||
| 481 | declare!(WDT0); | ||
| 482 | declare!(WDT1); | ||
| 483 | declare!(COMP_LPCOMP); | ||
| 484 | declare!(EGU0); | ||
| 485 | declare!(EGU1); | ||
| 486 | declare!(EGU2); | ||
| 487 | declare!(EGU3); | ||
| 488 | declare!(EGU4); | ||
| 489 | declare!(EGU5); | ||
| 490 | declare!(PWM0); | ||
| 491 | declare!(PWM1); | ||
| 492 | declare!(PWM2); | ||
| 493 | declare!(PWM3); | ||
| 494 | declare!(PDM0); | ||
| 495 | declare!(I2S0); | ||
| 496 | declare!(IPC); | ||
| 497 | declare!(QSPI); | ||
| 498 | declare!(NFCT); | ||
| 499 | declare!(GPIOTE1); | ||
| 500 | declare!(QDEC0); | ||
| 501 | declare!(QDEC1); | ||
| 502 | declare!(USBD); | ||
| 503 | declare!(USBREGULATOR); | ||
| 504 | declare!(KMU); | ||
| 505 | declare!(CRYPTOCELL); | ||
| 506 | } | ||
diff --git a/embassy-nrf/src/chips/nrf5340_net.rs b/embassy-nrf/src/chips/nrf5340_net.rs new file mode 100644 index 000000000..ea09f8d78 --- /dev/null +++ b/embassy-nrf/src/chips/nrf5340_net.rs | |||
| @@ -0,0 +1,353 @@ | |||
| 1 | #[allow(unused_imports)] | ||
| 2 | #[rustfmt::skip] | ||
| 3 | pub mod pac { | ||
| 4 | // The nRF5340 has a secure and non-secure (NS) mode. | ||
| 5 | // To avoid cfg spam, we remove _ns or _s suffixes here. | ||
| 6 | |||
| 7 | pub use nrf5340_net_pac::{ | ||
| 8 | interrupt, | ||
| 9 | Interrupt, | ||
| 10 | Peripherals, | ||
| 11 | |||
| 12 | aar_ns as aar, | ||
| 13 | acl_ns as acl, | ||
| 14 | appmutex_ns as appmutex, | ||
| 15 | ccm_ns as ccm, | ||
| 16 | clock_ns as clock, | ||
| 17 | cti_ns as cti, | ||
| 18 | ctrlap_ns as ctrlap, | ||
| 19 | dcnf_ns as dcnf, | ||
| 20 | dppic_ns as dppic, | ||
| 21 | ecb_ns as ecb, | ||
| 22 | egu0_ns as egu0, | ||
| 23 | ficr_ns as ficr, | ||
| 24 | gpiote_ns as gpiote, | ||
| 25 | ipc_ns as ipc, | ||
| 26 | nvmc_ns as nvmc, | ||
| 27 | p0_ns as p0, | ||
| 28 | power_ns as power, | ||
| 29 | radio_ns as radio, | ||
| 30 | reset_ns as reset, | ||
| 31 | rng_ns as rng, | ||
| 32 | rtc0_ns as rtc0, | ||
| 33 | spim0_ns as spim0, | ||
| 34 | spis0_ns as spis0, | ||
| 35 | swi0_ns as swi0, | ||
| 36 | temp_ns as temp, | ||
| 37 | timer0_ns as timer0, | ||
| 38 | twim0_ns as twim0, | ||
| 39 | twis0_ns as twis0, | ||
| 40 | uarte0_ns as uarte0, | ||
| 41 | uicr_ns as uicr, | ||
| 42 | vmc_ns as vmc, | ||
| 43 | vreqctrl_ns as vreqctrl, | ||
| 44 | wdt_ns as wdt, | ||
| 45 | |||
| 46 | AAR_NS as AAR, | ||
| 47 | ACL_NS as ACL, | ||
| 48 | APPMUTEX_NS as APPMUTEX, | ||
| 49 | APPMUTEX_S as APPMUTEX_S, | ||
| 50 | CBP as CBP, | ||
| 51 | CCM_NS as CCM, | ||
| 52 | CLOCK_NS as CLOCK, | ||
| 53 | CPUID as CPUID, | ||
| 54 | CTI_NS as CTI, | ||
| 55 | CTRLAP_NS as CTRLAP, | ||
| 56 | DCB as DCB, | ||
| 57 | DCNF_NS as DCNF, | ||
| 58 | DPPIC_NS as DPPIC, | ||
| 59 | DWT as DWT, | ||
| 60 | ECB_NS as ECB, | ||
| 61 | EGU0_NS as EGU0, | ||
| 62 | FICR_NS as FICR, | ||
| 63 | FPB as FPB, | ||
| 64 | GPIOTE_NS as GPIOTE, | ||
| 65 | IPC_NS as IPC, | ||
| 66 | ITM as ITM, | ||
| 67 | MPU as MPU, | ||
| 68 | NVIC as NVIC, | ||
| 69 | NVMC_NS as NVMC, | ||
| 70 | P0_NS as P0, | ||
| 71 | P1_NS as P1, | ||
| 72 | POWER_NS as POWER, | ||
| 73 | RADIO_NS as RADIO, | ||
| 74 | RESET_NS as RESET, | ||
| 75 | RNG_NS as RNG, | ||
| 76 | RTC0_NS as RTC0, | ||
| 77 | RTC1_NS as RTC1, | ||
| 78 | SCB as SCB, | ||
| 79 | SPIM0_NS as SPIM0, | ||
| 80 | SPIS0_NS as SPIS0, | ||
| 81 | SWI0_NS as SWI0, | ||
| 82 | SWI1_NS as SWI1, | ||
| 83 | SWI2_NS as SWI2, | ||
| 84 | SWI3_NS as SWI3, | ||
| 85 | SYST as SYST, | ||
| 86 | TEMP_NS as TEMP, | ||
| 87 | TIMER0_NS as TIMER0, | ||
| 88 | TIMER1_NS as TIMER1, | ||
| 89 | TIMER2_NS as TIMER2, | ||
| 90 | TPIU as TPIU, | ||
| 91 | TWIM0_NS as TWIM0, | ||
| 92 | TWIS0_NS as TWIS0, | ||
| 93 | UARTE0_NS as UARTE0, | ||
| 94 | UICR_NS as UICR, | ||
| 95 | VMC_NS as VMC, | ||
| 96 | VREQCTRL_NS as VREQCTRL, | ||
| 97 | WDT_NS as WDT, | ||
| 98 | }; | ||
| 99 | |||
| 100 | } | ||
| 101 | |||
| 102 | /// The maximum buffer size that the EasyDMA can send/recv in one operation. | ||
| 103 | pub const EASY_DMA_SIZE: usize = (1 << 16) - 1; | ||
| 104 | pub const FORCE_COPY_BUFFER_SIZE: usize = 1024; | ||
| 105 | |||
| 106 | embassy_hal_common::peripherals! { | ||
| 107 | // RTC | ||
| 108 | RTC0, | ||
| 109 | RTC1, | ||
| 110 | |||
| 111 | // WDT | ||
| 112 | WDT, | ||
| 113 | |||
| 114 | // UARTE, TWI & SPI | ||
| 115 | UARTETWISPI0, | ||
| 116 | UARTETWISPI1, | ||
| 117 | UARTETWISPI2, | ||
| 118 | UARTETWISPI3, | ||
| 119 | |||
| 120 | // SAADC | ||
| 121 | SAADC, | ||
| 122 | |||
| 123 | // PWM | ||
| 124 | PWM0, | ||
| 125 | PWM1, | ||
| 126 | PWM2, | ||
| 127 | PWM3, | ||
| 128 | |||
| 129 | // TIMER | ||
| 130 | TIMER0, | ||
| 131 | TIMER1, | ||
| 132 | TIMER2, | ||
| 133 | |||
| 134 | // GPIOTE | ||
| 135 | GPIOTE_CH0, | ||
| 136 | GPIOTE_CH1, | ||
| 137 | GPIOTE_CH2, | ||
| 138 | GPIOTE_CH3, | ||
| 139 | GPIOTE_CH4, | ||
| 140 | GPIOTE_CH5, | ||
| 141 | GPIOTE_CH6, | ||
| 142 | GPIOTE_CH7, | ||
| 143 | |||
| 144 | // PPI | ||
| 145 | PPI_CH0, | ||
| 146 | PPI_CH1, | ||
| 147 | PPI_CH2, | ||
| 148 | PPI_CH3, | ||
| 149 | PPI_CH4, | ||
| 150 | PPI_CH5, | ||
| 151 | PPI_CH6, | ||
| 152 | PPI_CH7, | ||
| 153 | PPI_CH8, | ||
| 154 | PPI_CH9, | ||
| 155 | PPI_CH10, | ||
| 156 | PPI_CH11, | ||
| 157 | PPI_CH12, | ||
| 158 | PPI_CH13, | ||
| 159 | PPI_CH14, | ||
| 160 | PPI_CH15, | ||
| 161 | PPI_CH16, | ||
| 162 | PPI_CH17, | ||
| 163 | PPI_CH18, | ||
| 164 | PPI_CH19, | ||
| 165 | PPI_CH20, | ||
| 166 | PPI_CH21, | ||
| 167 | PPI_CH22, | ||
| 168 | PPI_CH23, | ||
| 169 | PPI_CH24, | ||
| 170 | PPI_CH25, | ||
| 171 | PPI_CH26, | ||
| 172 | PPI_CH27, | ||
| 173 | PPI_CH28, | ||
| 174 | PPI_CH29, | ||
| 175 | PPI_CH30, | ||
| 176 | PPI_CH31, | ||
| 177 | |||
| 178 | PPI_GROUP0, | ||
| 179 | PPI_GROUP1, | ||
| 180 | PPI_GROUP2, | ||
| 181 | PPI_GROUP3, | ||
| 182 | PPI_GROUP4, | ||
| 183 | PPI_GROUP5, | ||
| 184 | |||
| 185 | // GPIO port 0 | ||
| 186 | P0_00, | ||
| 187 | P0_01, | ||
| 188 | P0_02, | ||
| 189 | P0_03, | ||
| 190 | P0_04, | ||
| 191 | P0_05, | ||
| 192 | P0_06, | ||
| 193 | P0_07, | ||
| 194 | P0_08, | ||
| 195 | P0_09, | ||
| 196 | P0_10, | ||
| 197 | P0_11, | ||
| 198 | P0_12, | ||
| 199 | P0_13, | ||
| 200 | P0_14, | ||
| 201 | P0_15, | ||
| 202 | P0_16, | ||
| 203 | P0_17, | ||
| 204 | P0_18, | ||
| 205 | P0_19, | ||
| 206 | P0_20, | ||
| 207 | P0_21, | ||
| 208 | P0_22, | ||
| 209 | P0_23, | ||
| 210 | P0_24, | ||
| 211 | P0_25, | ||
| 212 | P0_26, | ||
| 213 | P0_27, | ||
| 214 | P0_28, | ||
| 215 | P0_29, | ||
| 216 | P0_30, | ||
| 217 | P0_31, | ||
| 218 | |||
| 219 | // GPIO port 1 | ||
| 220 | P1_00, | ||
| 221 | P1_01, | ||
| 222 | P1_02, | ||
| 223 | P1_03, | ||
| 224 | P1_04, | ||
| 225 | P1_05, | ||
| 226 | P1_06, | ||
| 227 | P1_07, | ||
| 228 | P1_08, | ||
| 229 | P1_09, | ||
| 230 | P1_10, | ||
| 231 | P1_11, | ||
| 232 | P1_12, | ||
| 233 | P1_13, | ||
| 234 | P1_14, | ||
| 235 | P1_15, | ||
| 236 | } | ||
| 237 | |||
| 238 | impl_uarte!(UARTETWISPI0, UARTE0, SERIAL0); | ||
| 239 | impl_spim!(UARTETWISPI0, SPIM0, SERIAL0); | ||
| 240 | impl_twim!(UARTETWISPI0, TWIM0, SERIAL0); | ||
| 241 | |||
| 242 | impl_timer!(TIMER0, TIMER0, TIMER0); | ||
| 243 | impl_timer!(TIMER1, TIMER1, TIMER1); | ||
| 244 | impl_timer!(TIMER2, TIMER2, TIMER2); | ||
| 245 | |||
| 246 | impl_pin!(P0_00, 0, 0); | ||
| 247 | impl_pin!(P0_01, 0, 1); | ||
| 248 | impl_pin!(P0_02, 0, 2); | ||
| 249 | impl_pin!(P0_03, 0, 3); | ||
| 250 | impl_pin!(P0_04, 0, 4); | ||
| 251 | impl_pin!(P0_05, 0, 5); | ||
| 252 | impl_pin!(P0_06, 0, 6); | ||
| 253 | impl_pin!(P0_07, 0, 7); | ||
| 254 | impl_pin!(P0_08, 0, 8); | ||
| 255 | impl_pin!(P0_09, 0, 9); | ||
| 256 | impl_pin!(P0_10, 0, 10); | ||
| 257 | impl_pin!(P0_11, 0, 11); | ||
| 258 | impl_pin!(P0_12, 0, 12); | ||
| 259 | impl_pin!(P0_13, 0, 13); | ||
| 260 | impl_pin!(P0_14, 0, 14); | ||
| 261 | impl_pin!(P0_15, 0, 15); | ||
| 262 | impl_pin!(P0_16, 0, 16); | ||
| 263 | impl_pin!(P0_17, 0, 17); | ||
| 264 | impl_pin!(P0_18, 0, 18); | ||
| 265 | impl_pin!(P0_19, 0, 19); | ||
| 266 | impl_pin!(P0_20, 0, 20); | ||
| 267 | impl_pin!(P0_21, 0, 21); | ||
| 268 | impl_pin!(P0_22, 0, 22); | ||
| 269 | impl_pin!(P0_23, 0, 23); | ||
| 270 | impl_pin!(P0_24, 0, 24); | ||
| 271 | impl_pin!(P0_25, 0, 25); | ||
| 272 | impl_pin!(P0_26, 0, 26); | ||
| 273 | impl_pin!(P0_27, 0, 27); | ||
| 274 | impl_pin!(P0_28, 0, 28); | ||
| 275 | impl_pin!(P0_29, 0, 29); | ||
| 276 | impl_pin!(P0_30, 0, 30); | ||
| 277 | impl_pin!(P0_31, 0, 31); | ||
| 278 | |||
| 279 | impl_pin!(P1_00, 1, 0); | ||
| 280 | impl_pin!(P1_01, 1, 1); | ||
| 281 | impl_pin!(P1_02, 1, 2); | ||
| 282 | impl_pin!(P1_03, 1, 3); | ||
| 283 | impl_pin!(P1_04, 1, 4); | ||
| 284 | impl_pin!(P1_05, 1, 5); | ||
| 285 | impl_pin!(P1_06, 1, 6); | ||
| 286 | impl_pin!(P1_07, 1, 7); | ||
| 287 | impl_pin!(P1_08, 1, 8); | ||
| 288 | impl_pin!(P1_09, 1, 9); | ||
| 289 | impl_pin!(P1_10, 1, 10); | ||
| 290 | impl_pin!(P1_11, 1, 11); | ||
| 291 | impl_pin!(P1_12, 1, 12); | ||
| 292 | impl_pin!(P1_13, 1, 13); | ||
| 293 | impl_pin!(P1_14, 1, 14); | ||
| 294 | impl_pin!(P1_15, 1, 15); | ||
| 295 | |||
| 296 | impl_ppi_channel!(PPI_CH0, 0 => configurable); | ||
| 297 | impl_ppi_channel!(PPI_CH1, 1 => configurable); | ||
| 298 | impl_ppi_channel!(PPI_CH2, 2 => configurable); | ||
| 299 | impl_ppi_channel!(PPI_CH3, 3 => configurable); | ||
| 300 | impl_ppi_channel!(PPI_CH4, 4 => configurable); | ||
| 301 | impl_ppi_channel!(PPI_CH5, 5 => configurable); | ||
| 302 | impl_ppi_channel!(PPI_CH6, 6 => configurable); | ||
| 303 | impl_ppi_channel!(PPI_CH7, 7 => configurable); | ||
| 304 | impl_ppi_channel!(PPI_CH8, 8 => configurable); | ||
| 305 | impl_ppi_channel!(PPI_CH9, 9 => configurable); | ||
| 306 | impl_ppi_channel!(PPI_CH10, 10 => configurable); | ||
| 307 | impl_ppi_channel!(PPI_CH11, 11 => configurable); | ||
| 308 | impl_ppi_channel!(PPI_CH12, 12 => configurable); | ||
| 309 | impl_ppi_channel!(PPI_CH13, 13 => configurable); | ||
| 310 | impl_ppi_channel!(PPI_CH14, 14 => configurable); | ||
| 311 | impl_ppi_channel!(PPI_CH15, 15 => configurable); | ||
| 312 | impl_ppi_channel!(PPI_CH16, 16 => configurable); | ||
| 313 | impl_ppi_channel!(PPI_CH17, 17 => configurable); | ||
| 314 | impl_ppi_channel!(PPI_CH18, 18 => configurable); | ||
| 315 | impl_ppi_channel!(PPI_CH19, 19 => configurable); | ||
| 316 | impl_ppi_channel!(PPI_CH20, 20 => configurable); | ||
| 317 | impl_ppi_channel!(PPI_CH21, 21 => configurable); | ||
| 318 | impl_ppi_channel!(PPI_CH22, 22 => configurable); | ||
| 319 | impl_ppi_channel!(PPI_CH23, 23 => configurable); | ||
| 320 | impl_ppi_channel!(PPI_CH24, 24 => configurable); | ||
| 321 | impl_ppi_channel!(PPI_CH25, 25 => configurable); | ||
| 322 | impl_ppi_channel!(PPI_CH26, 26 => configurable); | ||
| 323 | impl_ppi_channel!(PPI_CH27, 27 => configurable); | ||
| 324 | impl_ppi_channel!(PPI_CH28, 28 => configurable); | ||
| 325 | impl_ppi_channel!(PPI_CH29, 29 => configurable); | ||
| 326 | impl_ppi_channel!(PPI_CH30, 30 => configurable); | ||
| 327 | impl_ppi_channel!(PPI_CH31, 31 => configurable); | ||
| 328 | |||
| 329 | pub mod irqs { | ||
| 330 | use crate::pac::Interrupt as InterruptEnum; | ||
| 331 | use embassy_macros::interrupt_declare as declare; | ||
| 332 | |||
| 333 | declare!(CLOCK_POWER); | ||
| 334 | declare!(RADIO); | ||
| 335 | declare!(RNG); | ||
| 336 | declare!(GPIOTE); | ||
| 337 | declare!(WDT); | ||
| 338 | declare!(TIMER0); | ||
| 339 | declare!(ECB); | ||
| 340 | declare!(AAR_CCM); | ||
| 341 | declare!(TEMP); | ||
| 342 | declare!(RTC0); | ||
| 343 | declare!(IPC); | ||
| 344 | declare!(SERIAL0); | ||
| 345 | declare!(EGU0); | ||
| 346 | declare!(RTC1); | ||
| 347 | declare!(TIMER1); | ||
| 348 | declare!(TIMER2); | ||
| 349 | declare!(SWI0); | ||
| 350 | declare!(SWI1); | ||
| 351 | declare!(SWI2); | ||
| 352 | declare!(SWI3); | ||
| 353 | } | ||
diff --git a/embassy-nrf/src/chips/nrf9160.rs b/embassy-nrf/src/chips/nrf9160.rs index 3db1e77f2..3678e6d31 100644 --- a/embassy-nrf/src/chips/nrf9160.rs +++ b/embassy-nrf/src/chips/nrf9160.rs | |||
| @@ -2,27 +2,49 @@ | |||
| 2 | #[rustfmt::skip] | 2 | #[rustfmt::skip] |
| 3 | pub mod pac { | 3 | pub mod pac { |
| 4 | // The nRF9160 has a secure and non-secure (NS) mode. | 4 | // The nRF9160 has a secure and non-secure (NS) mode. |
| 5 | // For now we only support the NS mode, but those peripherals have `_ns` appended to them. | 5 | // To avoid cfg spam, we remove _ns or _s suffixes here. |
| 6 | // To avoid cfg spam, weŕe going to rename the ones we use here. | ||
| 7 | 6 | ||
| 8 | pub use nrf9160_pac::{ | 7 | pub use nrf9160_pac::{ |
| 9 | interrupt, | 8 | interrupt, |
| 10 | Interrupt, | 9 | Interrupt, |
| 11 | 10 | ||
| 11 | cc_host_rgf_s as cc_host_rgf, | ||
| 12 | clock_ns as clock, | ||
| 13 | cryptocell_s as cryptocell, | ||
| 14 | ctrl_ap_peri_s as ctrl_ap_peri, | ||
| 15 | dppic_ns as dppic, | ||
| 16 | egu0_ns as egu0, | ||
| 17 | ficr_s as ficr, | ||
| 18 | fpu_ns as fpu, | ||
| 19 | gpiote0_s as gpiote0, | ||
| 20 | i2s_ns as i2s, | ||
| 21 | ipc_ns as ipc, | ||
| 22 | kmu_ns as kmu, | ||
| 23 | nvmc_ns as nvmc, | ||
| 12 | p0_ns as p0, | 24 | p0_ns as p0, |
| 25 | pdm_ns as pdm, | ||
| 26 | power_ns as power, | ||
| 13 | pwm0_ns as pwm0, | 27 | pwm0_ns as pwm0, |
| 28 | regulators_ns as regulators, | ||
| 14 | rtc0_ns as rtc0, | 29 | rtc0_ns as rtc0, |
| 30 | saadc_ns as saadc, | ||
| 15 | spim0_ns as spim0, | 31 | spim0_ns as spim0, |
| 32 | spis0_ns as spis0, | ||
| 33 | spu_s as spu, | ||
| 34 | tad_s as tad, | ||
| 16 | timer0_ns as timer0, | 35 | timer0_ns as timer0, |
| 17 | twim0_ns as twim0, | 36 | twim0_ns as twim0, |
| 37 | twis0_ns as twis0, | ||
| 18 | uarte0_ns as uarte0, | 38 | uarte0_ns as uarte0, |
| 19 | saadc_ns as saadc, | 39 | uicr_s as uicr, |
| 40 | vmc_ns as vmc, | ||
| 41 | wdt_ns as wdt, | ||
| 20 | }; | 42 | }; |
| 21 | 43 | ||
| 22 | #[cfg(feature = "nrf9160-ns")] | 44 | #[cfg(feature = "nrf9160-ns")] |
| 23 | pub use nrf9160_pac::{ | 45 | pub use nrf9160_pac::{ |
| 24 | CLOCK_NS as CLOCK, | 46 | CLOCK_NS as CLOCK, |
| 25 | DPPIC_NS as PPI, | 47 | DPPIC_NS as DPPIC, |
| 26 | EGU0_NS as EGU0, | 48 | EGU0_NS as EGU0, |
| 27 | EGU1_NS as EGU1, | 49 | EGU1_NS as EGU1, |
| 28 | EGU2_NS as EGU2, | 50 | EGU2_NS as EGU2, |
| @@ -79,7 +101,7 @@ pub mod pac { | |||
| 79 | CLOCK_S as CLOCK, | 101 | CLOCK_S as CLOCK, |
| 80 | CRYPTOCELL_S as CRYPTOCELL, | 102 | CRYPTOCELL_S as CRYPTOCELL, |
| 81 | CTRL_AP_PERI_S as CTRL_AP_PERI, | 103 | CTRL_AP_PERI_S as CTRL_AP_PERI, |
| 82 | DPPIC_S as PPI, | 104 | DPPIC_S as DPPIC, |
| 83 | EGU0_S as EGU0, | 105 | EGU0_S as EGU0, |
| 84 | EGU1_S as EGU1, | 106 | EGU1_S as EGU1, |
| 85 | EGU2_S as EGU2, | 107 | EGU2_S as EGU2, |
