#[doc(alias = "master")]
pub mod controller;
#[doc(hidden)]
pub fn init(peripherals: &mut crate::OptionalPeripherals) {
cfg_if::cfg_if! {
if #[cfg(context = "nrf52833")] {
let _ = peripherals.TWISPI0.take().unwrap();
let _ = peripherals.TWISPI1.take().unwrap();
} else if #[cfg(context = "nrf52840")] {
let _ = peripherals.TWISPI0.take().unwrap();
let _ = peripherals.TWISPI1.take().unwrap();
} else if #[cfg(context = "nrf5340")] {
let _ = peripherals.SERIAL0.take().unwrap();
let _ = peripherals.SERIAL1.take().unwrap();
} else {
compile_error!("this nRF chip is not supported");
}
}
}