stm32: move dbgmcu stuff to toplevel config setting, defaulting to true.
This commit is contained in:
@ -21,7 +21,6 @@ pub struct Config {
|
||||
pub hclk: Option<Hertz>,
|
||||
pub pclk1: Option<Hertz>,
|
||||
pub pclk2: Option<Hertz>,
|
||||
pub enable_debug_wfe: bool,
|
||||
}
|
||||
|
||||
/// RCC peripheral
|
||||
@ -176,15 +175,6 @@ impl<'d> Rcc<'d> {
|
||||
});
|
||||
}
|
||||
|
||||
if self.config.enable_debug_wfe {
|
||||
unsafe {
|
||||
RCC.ahb1enr().modify(|w| w.set_dma1en(true));
|
||||
critical_section::with(|_| {
|
||||
crate::dbgmcu::Dbgmcu::enable_all();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Clocks {
|
||||
sys: Hertz(sysclk),
|
||||
apb1: Hertz(pclk1),
|
||||
|
Reference in New Issue
Block a user