stm32/rcc: unify l0l1 and l4l5.

This commit is contained in:
Dario Nieuwenhuis
2023-11-13 01:05:07 +01:00
parent 4fe344ebc0
commit 066dc297ed
5 changed files with 260 additions and 334 deletions

View File

@ -466,7 +466,7 @@ pub fn config() -> Config {
mul: PllMul::MUL4,
div: PllDiv::DIV2, // 32Mhz clock (16 * 4 / 2)
});
config.rcc.mux = ClockSrc::PLL1_P;
config.rcc.mux = ClockSrc::PLL1_R;
}
#[cfg(any(feature = "stm32l152re"))]
@ -478,7 +478,7 @@ pub fn config() -> Config {
mul: PllMul::MUL4,
div: PllDiv::DIV2, // 32Mhz clock (16 * 4 / 2)
});
config.rcc.mux = ClockSrc::PLL1_P;
config.rcc.mux = ClockSrc::PLL1_R;
}
config