diff options
| -rw-r--r-- | embassy-nrf/src/peripherals.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/embassy-nrf/src/peripherals.rs b/embassy-nrf/src/peripherals.rs index bc2ed8810..1f449e91a 100644 --- a/embassy-nrf/src/peripherals.rs +++ b/embassy-nrf/src/peripherals.rs | |||
| @@ -4,6 +4,7 @@ macro_rules! peripherals { | |||
| 4 | ($($(#[$cfg:meta])? $name:ident: $type:ident),*$(,)?) => { | 4 | ($($(#[$cfg:meta])? $name:ident: $type:ident),*$(,)?) => { |
| 5 | $( | 5 | $( |
| 6 | $(#[$cfg])? | 6 | $(#[$cfg])? |
| 7 | #[allow(non_camel_case_types)] | ||
| 7 | pub struct $type { _private: () } | 8 | pub struct $type { _private: () } |
| 8 | 9 | ||
| 9 | $(#[$cfg])? | 10 | $(#[$cfg])? |
| @@ -73,6 +74,14 @@ peripherals! { | |||
| 73 | 74 | ||
| 74 | // GPIOTE | 75 | // GPIOTE |
| 75 | gpiote: GPIOTE, | 76 | gpiote: GPIOTE, |
| 77 | gpiote_ch_0: GPIOTE_CH0, | ||
| 78 | gpiote_ch_1: GPIOTE_CH1, | ||
| 79 | gpiote_ch_2: GPIOTE_CH2, | ||
| 80 | gpiote_ch_3: GPIOTE_CH3, | ||
| 81 | gpiote_ch_4: GPIOTE_CH4, | ||
| 82 | gpiote_ch_5: GPIOTE_CH5, | ||
| 83 | gpiote_ch_6: GPIOTE_CH6, | ||
| 84 | gpiote_ch_7: GPIOTE_CH7, | ||
| 76 | 85 | ||
| 77 | // GPIO port 0 | 86 | // GPIO port 0 |
| 78 | p0_00: P0_00, | 87 | p0_00: P0_00, |
