diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-02-03 00:24:33 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-02-03 00:24:33 +0000 |
| commit | 81e2d12cc287a7682e576890d248f5ad0349b532 (patch) | |
| tree | 5b4ac173543d93beb81cf464382d312d30f72ccc | |
| parent | 69925764dc3cfcaad5e17133cec872bdb55e7d0b (diff) | |
| parent | 6ec72c0af0b2682d5bea345832f6a0c7a6284ead (diff) | |
Merge pull request #3836 from vinsynth/main
set PLLI2S M and SRC for f4 chips which support it
| -rw-r--r-- | embassy-stm32/src/rcc/f247.rs | 5 |
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..79d793dcc 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, stm32f423, stm32f446))] | ||
| 418 | w.set_pllm(pll.prediv); | ||
| 419 | #[cfg(any(stm32f412, stm32f413, stm32f423))] | ||
| 420 | w.set_pllsrc(input.source); | ||
| 421 | |||
| 417 | write_fields!(w); | 422 | write_fields!(w); |
| 418 | }), | 423 | }), |
| 419 | #[cfg(stm32f2)] | 424 | #[cfg(stm32f2)] |
