Add example for STM32WL55

This commit is contained in:
Ulf Lilleengen
2021-08-17 13:14:21 +02:00
parent 4b74e8fc50
commit 61409e2fb6
8 changed files with 133 additions and 11 deletions

View File

@ -116,15 +116,6 @@ impl<'d> Rcc<'d> {
pub fn clocks(&self) -> &'static Clocks {
unsafe { get_freqs() }
}
pub fn enable_debug_wfe(&mut self, _dbg: &mut peripherals::DBGMCU, enable_dma: bool) {
// NOTE(unsafe) We have exclusive access to the RCC and DBGMCU
unsafe {
pac::RCC.ahb1enr().modify(|w| w.set_dma1en(enable_dma));
Dbgmcu::enable_all();
}
}
}
/// Extension trait that freezes the `RCC` peripheral with provided clocks configuration