Merge pull request #2466 from embassy-rs/fix-h7-tests

tests/stm32: fix h7 wrong smps config.
This commit is contained in:
Dario Nieuwenhuis 2024-01-20 01:18:51 +00:00 committed by GitHub
commit 2fd391240d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -394,6 +394,10 @@ pub fn config() -> Config {
config.rcc.apb4_pre = APBPrescaler::DIV2; // 100 Mhz
config.rcc.voltage_scale = VoltageScale::Scale1;
config.rcc.adc_clock_source = AdcClockSource::PLL2_P;
#[cfg(any(feature = "stm32h755zi"))]
{
config.rcc.supply_config = SupplyConfig::DirectSMPS;
}
}
#[cfg(any(feature = "stm32h7a3zi"))]