mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-05 16:14:45 +00:00
set PLLI2S M and SRC for f4 chips which support it
This commit is contained in:
parent
69925764dc
commit
ce04cf8340
@ -414,6 +414,11 @@ 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))]
|
||||||
|
w.set_pllm(pll.prediv);
|
||||||
|
#[cfg(any(stm32f412, stm32f413))]
|
||||||
|
w.set_pllsrc(input.source);
|
||||||
|
|
||||||
write_fields!(w);
|
write_fields!(w);
|
||||||
}),
|
}),
|
||||||
#[cfg(stm32f2)]
|
#[cfg(stm32f2)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user