Skip to content

Commit 81e2d12

Browse files
authored
Merge pull request #3836 from vinsynth/main
set PLLI2S M and SRC for f4 chips which support it
2 parents 6992576 + 6ec72c0 commit 81e2d12

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

embassy-stm32/src/rcc/f247.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,11 @@ fn init_pll(instance: PllInstance, config: Option<Pll>, input: &PllInput) -> Pll
414414
}),
415415
#[cfg(any(all(stm32f4, not(stm32f410)), stm32f7))]
416416
PllInstance::Plli2s => RCC.plli2scfgr().write(|w| {
417+
#[cfg(any(stm32f411, stm32f412, stm32f413, stm32f423, stm32f446))]
418+
w.set_pllm(pll.prediv);
419+
#[cfg(any(stm32f412, stm32f413, stm32f423))]
420+
w.set_pllsrc(input.source);
421+
417422
write_fields!(w);
418423
}),
419424
#[cfg(stm32f2)]

0 commit comments

Comments
 (0)