Merge pull request #2192 from RobertTDowling/stm32h7-adc-clock

stm32h7 ADC: Fix stalled clock in default h7 config
This commit is contained in:
Dario Nieuwenhuis 2023-11-20 00:00:25 +00:00 committed by GitHub
commit cf82fa687c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,12 @@ impl Default for Config {
apb4_pre: APBPrescaler::DIV1, apb4_pre: APBPrescaler::DIV1,
per_clock_source: PerClockSource::HSI, per_clock_source: PerClockSource::HSI,
adc_clock_source: AdcClockSource::from_bits(0), // PLL2_P on H7, HCLK on H5
#[cfg(stm32h5)]
adc_clock_source: AdcClockSource::HCLK1,
#[cfg(stm32h7)]
adc_clock_source: AdcClockSource::PER,
timer_prescaler: TimerPrescaler::DefaultX2, timer_prescaler: TimerPrescaler::DefaultX2,
voltage_scale: VoltageScale::Scale0, voltage_scale: VoltageScale::Scale0,
ls: Default::default(), ls: Default::default(),