set PLLI2SM and plli2s_src f423

This commit is contained in:
vinsynth 2025-02-02 18:53:06 -05:00
parent ce04cf8340
commit 6ec72c0af0

View File

@ -414,9 +414,9 @@ fn init_pll(instance: PllInstance, config: Option<Pll>, input: &PllInput) -> Pll
}), }),
#[cfg(any(all(stm32f4, not(stm32f410)), stm32f7))] #[cfg(any(all(stm32f4, not(stm32f410)), stm32f7))]
PllInstance::Plli2s => RCC.plli2scfgr().write(|w| { PllInstance::Plli2s => RCC.plli2scfgr().write(|w| {
#[cfg(any(stm32f411, stm32f412, stm32f413, stm32f446))] #[cfg(any(stm32f411, stm32f412, stm32f413, stm32f423, stm32f446))]
w.set_pllm(pll.prediv); w.set_pllm(pll.prediv);
#[cfg(any(stm32f412, stm32f413))] #[cfg(any(stm32f412, stm32f413, stm32f423))]
w.set_pllsrc(input.source); w.set_pllsrc(input.source);
write_fields!(w); write_fields!(w);