diff options
| author | Ulf Lilleengen <[email protected]> | 2025-10-28 13:52:53 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-28 13:52:53 +0000 |
| commit | afe9defe31c79444d3bf8eca5e2f0d4161fd96f9 (patch) | |
| tree | ac3273028c11098689a5d0f637d905974b35aa09 /embassy-nrf/src/lib.rs | |
| parent | 41ff72bbce343c1e3c5efa2939e08a73b9122552 (diff) | |
| parent | 83deef3672c651ac86e7ad497eccc52119b3a27f (diff) | |
Merge pull request #4793 from embassy-rs/nrf54-new-pac
feat: improve nrf54 support using new nrf-pac
Diffstat (limited to 'embassy-nrf/src/lib.rs')
| -rw-r--r-- | embassy-nrf/src/lib.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/embassy-nrf/src/lib.rs b/embassy-nrf/src/lib.rs index 705c77453..2f7505746 100644 --- a/embassy-nrf/src/lib.rs +++ b/embassy-nrf/src/lib.rs | |||
| @@ -76,14 +76,12 @@ pub(crate) mod util; | |||
| 76 | #[cfg(feature = "_time-driver")] | 76 | #[cfg(feature = "_time-driver")] |
| 77 | mod time_driver; | 77 | mod time_driver; |
| 78 | 78 | ||
| 79 | #[cfg(not(feature = "_nrf54l"))] // TODO | ||
| 80 | #[cfg(not(feature = "_nrf51"))] | 79 | #[cfg(not(feature = "_nrf51"))] |
| 81 | pub mod buffered_uarte; | 80 | pub mod buffered_uarte; |
| 82 | #[cfg(not(feature = "_nrf54l"))] // TODO | 81 | #[cfg(not(feature = "_nrf54l"))] // TODO |
| 83 | #[cfg(not(feature = "_nrf51"))] | 82 | #[cfg(not(feature = "_nrf51"))] |
| 84 | pub mod egu; | 83 | pub mod egu; |
| 85 | pub mod gpio; | 84 | pub mod gpio; |
| 86 | #[cfg(not(feature = "_nrf54l"))] // TODO | ||
| 87 | #[cfg(feature = "gpiote")] | 85 | #[cfg(feature = "gpiote")] |
| 88 | pub mod gpiote; | 86 | pub mod gpiote; |
| 89 | #[cfg(not(feature = "_nrf54l"))] // TODO | 87 | #[cfg(not(feature = "_nrf54l"))] // TODO |
| @@ -119,9 +117,7 @@ pub mod pdm; | |||
| 119 | #[cfg(not(feature = "_nrf54l"))] // TODO | 117 | #[cfg(not(feature = "_nrf54l"))] // TODO |
| 120 | #[cfg(any(feature = "nrf52840", feature = "nrf9160-s", feature = "nrf9160-ns"))] | 118 | #[cfg(any(feature = "nrf52840", feature = "nrf9160-s", feature = "nrf9160-ns"))] |
| 121 | pub mod power; | 119 | pub mod power; |
| 122 | #[cfg(not(feature = "_nrf54l"))] // TODO | ||
| 123 | pub mod ppi; | 120 | pub mod ppi; |
| 124 | #[cfg(not(feature = "_nrf54l"))] // TODO | ||
| 125 | #[cfg(not(any( | 121 | #[cfg(not(any( |
| 126 | feature = "_nrf51", | 122 | feature = "_nrf51", |
| 127 | feature = "nrf52805", | 123 | feature = "nrf52805", |
| @@ -156,26 +152,19 @@ pub mod reset; | |||
| 156 | #[cfg(not(any(feature = "_nrf5340-app", feature = "_nrf91")))] | 152 | #[cfg(not(any(feature = "_nrf5340-app", feature = "_nrf91")))] |
| 157 | pub mod rng; | 153 | pub mod rng; |
| 158 | pub mod rtc; | 154 | pub mod rtc; |
| 159 | #[cfg(not(feature = "_nrf54l"))] // TODO | ||
| 160 | #[cfg(not(any(feature = "_nrf51", feature = "nrf52820", feature = "_nrf5340-net")))] | 155 | #[cfg(not(any(feature = "_nrf51", feature = "nrf52820", feature = "_nrf5340-net")))] |
| 161 | pub mod saadc; | 156 | pub mod saadc; |
| 162 | #[cfg(not(feature = "_nrf54l"))] // TODO | ||
| 163 | #[cfg(not(feature = "_nrf51"))] | 157 | #[cfg(not(feature = "_nrf51"))] |
| 164 | pub mod spim; | 158 | pub mod spim; |
| 165 | #[cfg(not(feature = "_nrf54l"))] // TODO | ||
| 166 | #[cfg(not(feature = "_nrf51"))] | 159 | #[cfg(not(feature = "_nrf51"))] |
| 167 | pub mod spis; | 160 | pub mod spis; |
| 168 | #[cfg(not(any(feature = "_nrf5340-app", feature = "_nrf91")))] | 161 | #[cfg(not(any(feature = "_nrf5340-app", feature = "_nrf91")))] |
| 169 | pub mod temp; | 162 | pub mod temp; |
| 170 | #[cfg(not(feature = "_nrf54l"))] // TODO | ||
| 171 | pub mod timer; | 163 | pub mod timer; |
| 172 | #[cfg(not(feature = "_nrf54l"))] // TODO | ||
| 173 | #[cfg(not(feature = "_nrf51"))] | 164 | #[cfg(not(feature = "_nrf51"))] |
| 174 | pub mod twim; | 165 | pub mod twim; |
| 175 | #[cfg(not(feature = "_nrf54l"))] // TODO | ||
| 176 | #[cfg(not(feature = "_nrf51"))] | 166 | #[cfg(not(feature = "_nrf51"))] |
| 177 | pub mod twis; | 167 | pub mod twis; |
| 178 | #[cfg(not(feature = "_nrf54l"))] // TODO | ||
| 179 | #[cfg(not(feature = "_nrf51"))] | 168 | #[cfg(not(feature = "_nrf51"))] |
| 180 | pub mod uarte; | 169 | pub mod uarte; |
| 181 | #[cfg(not(feature = "_nrf54l"))] // TODO | 170 | #[cfg(not(feature = "_nrf54l"))] // TODO |
| @@ -1153,7 +1142,6 @@ pub fn init(config: config::Config) -> Peripherals { | |||
| 1153 | } | 1142 | } |
| 1154 | 1143 | ||
| 1155 | // Init GPIOTE | 1144 | // Init GPIOTE |
| 1156 | #[cfg(not(feature = "_nrf54l"))] // TODO | ||
| 1157 | #[cfg(feature = "gpiote")] | 1145 | #[cfg(feature = "gpiote")] |
| 1158 | gpiote::init(config.gpiote_interrupt_priority); | 1146 | gpiote::init(config.gpiote_interrupt_priority); |
| 1159 | 1147 | ||
