diff options
| -rw-r--r-- | embassy-nrf/src/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/embassy-nrf/src/lib.rs b/embassy-nrf/src/lib.rs index bc70fc2f6..b6fe046cf 100644 --- a/embassy-nrf/src/lib.rs +++ b/embassy-nrf/src/lib.rs | |||
| @@ -267,5 +267,12 @@ pub fn init(config: config::Config) -> Peripherals { | |||
| 267 | #[cfg(feature = "_time-driver")] | 267 | #[cfg(feature = "_time-driver")] |
| 268 | time_driver::init(config.time_interrupt_priority); | 268 | time_driver::init(config.time_interrupt_priority); |
| 269 | 269 | ||
| 270 | // Disable UARTE (enabled by default for some reason) | ||
| 271 | #[cfg(feature = "_nrf9160")] | ||
| 272 | unsafe { | ||
| 273 | (*pac::UARTE0::ptr()).enable.write(|w| w.enable().disabled()); | ||
| 274 | (*pac::UARTE1::ptr()).enable.write(|w| w.enable().disabled()); | ||
| 275 | } | ||
| 276 | |||
| 270 | peripherals | 277 | peripherals |
| 271 | } | 278 | } |
