diff options
| -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(), |
