embassy-nrf: Add TWIS module

This commit is contained in:
kalkyl
2022-11-13 22:15:19 +01:00
parent d05979c708
commit eba42cb5f4
13 changed files with 815 additions and 0 deletions

View File

@ -100,6 +100,7 @@ pub mod spim;
pub mod temp;
pub mod timer;
pub mod twim;
pub mod twis;
pub mod uarte;
#[cfg(any(
feature = "_nrf5340-app",
@ -267,5 +268,11 @@ pub fn init(config: config::Config) -> Peripherals {
#[cfg(feature = "_time-driver")]
time_driver::init(config.time_interrupt_priority);
// Disable UARTE (enabled by default for some reason)
#[cfg(feature = "_nrf9160")]
unsafe {
(*pac::UARTE0::ptr()).enable.write(|w| w.enable().disabled());
(*pac::UARTE1::ptr()).enable.write(|w| w.enable().disabled());
}
peripherals
}