tests/stm32: fix h7 wrong smps config.
This commit is contained in:
parent
a2eb46e9e4
commit
7696b1c0b8
1 changed files with 4 additions and 0 deletions
|
@ -394,6 +394,10 @@ pub fn config() -> Config {
|
||||||
config.rcc.apb4_pre = APBPrescaler::DIV2; // 100 Mhz
|
config.rcc.apb4_pre = APBPrescaler::DIV2; // 100 Mhz
|
||||||
config.rcc.voltage_scale = VoltageScale::Scale1;
|
config.rcc.voltage_scale = VoltageScale::Scale1;
|
||||||
config.rcc.adc_clock_source = AdcClockSource::PLL2_P;
|
config.rcc.adc_clock_source = AdcClockSource::PLL2_P;
|
||||||
|
#[cfg(any(feature = "stm32h755zi"))]
|
||||||
|
{
|
||||||
|
config.rcc.supply_config = SupplyConfig::DirectSMPS;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(feature = "stm32h7a3zi"))]
|
#[cfg(any(feature = "stm32h7a3zi"))]
|
||||||
|
|
Loading…
Add table
Reference in a new issue