stm32/rcc: unify L4 and L5.

This commit is contained in:
Dario Nieuwenhuis
2023-10-16 03:47:54 +02:00
parent 870dcc5970
commit 18e96898ea
9 changed files with 97 additions and 346 deletions

View File

@ -302,14 +302,17 @@ pub fn config() -> Config {
#[cfg(any(feature = "stm32l552ze"))]
{
use embassy_stm32::rcc::*;
config.rcc.mux = ClockSrc::PLL(
config.rcc.hsi16 = true;
config.rcc.mux = ClockSrc::PLL;
config.rcc.pll = Some(Pll {
// 110Mhz clock (16 / 4 * 55 / 2)
PLLSource::HSI16,
PllRDiv::DIV2,
PllPreDiv::DIV4,
PllMul::MUL55,
None,
);
source: PLLSource::HSI16,
prediv: PllPreDiv::DIV4,
mul: PllMul::MUL55,
divp: None,
divq: None,
divr: Some(PllRDiv::DIV2),
});
}
#[cfg(feature = "stm32u585ai")]