aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvinsynth <[email protected]>2025-02-02 18:12:34 -0500
committervinsynth <[email protected]>2025-02-02 18:12:34 -0500
commitce04cf83407f0c70d7d1eec4ed1de2dfbef06dd6 (patch)
tree8c413754448bbad835f29368b03d685a5173876a
parent69925764dc3cfcaad5e17133cec872bdb55e7d0b (diff)
set PLLI2S M and SRC for f4 chips which support it
-rw-r--r--embassy-stm32/src/rcc/f247.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-stm32/src/rcc/f247.rs b/embassy-stm32/src/rcc/f247.rs
index 3e7aff02d..b855d3c09 100644
--- a/embassy-stm32/src/rcc/f247.rs
+++ b/embassy-stm32/src/rcc/f247.rs
@@ -414,6 +414,11 @@ fn init_pll(instance: PllInstance, config: Option<Pll>, input: &PllInput) -> Pll
414 }), 414 }),
415 #[cfg(any(all(stm32f4, not(stm32f410)), stm32f7))] 415 #[cfg(any(all(stm32f4, not(stm32f410)), stm32f7))]
416 PllInstance::Plli2s => RCC.plli2scfgr().write(|w| { 416 PllInstance::Plli2s => RCC.plli2scfgr().write(|w| {
417 #[cfg(any(stm32f411, stm32f412, stm32f413, stm32f446))]
418 w.set_pllm(pll.prediv);
419 #[cfg(any(stm32f412, stm32f413))]
420 w.set_pllsrc(input.source);
421
417 write_fields!(w); 422 write_fields!(w);
418 }), 423 }),
419 #[cfg(stm32f2)] 424 #[cfg(stm32f2)]