diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-11-20 00:00:25 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-20 00:00:25 +0000 |
| commit | cf82fa687c5da4c95bd75c34cb73f2e9cf04996d (patch) | |
| tree | 265efdcf974d2ba6ca83fb62d0f331f5fda9ffe2 | |
| parent | 3a939fb511fec1edcd786cd356b717ba0870210f (diff) | |
| parent | 7f258cd3c403fc2fe1837afbecc1bf88da46cb5a (diff) | |
Merge pull request #2192 from RobertTDowling/stm32h7-adc-clock
stm32h7 ADC: Fix stalled clock in default h7 config
| -rw-r--r-- | embassy-stm32/src/rcc/h.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/embassy-stm32/src/rcc/h.rs b/embassy-stm32/src/rcc/h.rs index 4407d9e93..1a9603d02 100644 --- a/embassy-stm32/src/rcc/h.rs +++ b/embassy-stm32/src/rcc/h.rs | |||
| @@ -168,7 +168,12 @@ impl Default for Config { | |||
| 168 | apb4_pre: APBPrescaler::DIV1, | 168 | apb4_pre: APBPrescaler::DIV1, |
| 169 | 169 | ||
| 170 | per_clock_source: PerClockSource::HSI, | 170 | per_clock_source: PerClockSource::HSI, |
| 171 | adc_clock_source: AdcClockSource::from_bits(0), // PLL2_P on H7, HCLK on H5 | 171 | |
| 172 | #[cfg(stm32h5)] | ||
| 173 | adc_clock_source: AdcClockSource::HCLK1, | ||
| 174 | #[cfg(stm32h7)] | ||
| 175 | adc_clock_source: AdcClockSource::PER, | ||
| 176 | |||
| 172 | timer_prescaler: TimerPrescaler::DefaultX2, | 177 | timer_prescaler: TimerPrescaler::DefaultX2, |
| 173 | voltage_scale: VoltageScale::Scale0, | 178 | voltage_scale: VoltageScale::Scale0, |
| 174 | ls: Default::default(), | 179 | ls: Default::default(), |
