Skip to content

Commit

Permalink
tests/stm32: fix h7 wrong smps config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirbaio committed Jan 20, 2024
1 parent a2eb46e commit 7696b1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/stm32/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))]
Expand Down

0 comments on commit 7696b1c

Please sign in to comment.