stm32l0: Use embassy::main for examples

This commit is contained in:
Timo Kröger
2021-07-29 16:01:08 +02:00
parent 4ccac69929
commit cad43587e6
3 changed files with 19 additions and 49 deletions

View File

@ -1,4 +1,5 @@
pub use super::types::*;
use crate::dbgmcu::Dbgmcu;
use crate::pac;
use crate::peripherals::{self, CRS, RCC, SYSCFG};
use crate::rcc::{get_freqs, set_freqs, Clocks};
@ -172,11 +173,7 @@ impl<'d> Rcc<'d> {
unsafe {
pac::RCC.ahbenr().modify(|w| w.set_dma1en(enable_dma));
pac::DBGMCU.cr().modify(|w| {
w.set_dbg_sleep(true);
w.set_dbg_standby(true);
w.set_dbg_stop(true);
});
Dbgmcu::enable_all();
}
}