diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-01-20 01:18:51 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-20 01:18:51 +0000 |
| commit | 2fd391240deafe36066949db926337fe9e31433a (patch) | |
| tree | aebc2abaa66924bff1d6de1c8d30cb440fad5962 | |
| parent | 777c0186238ab70cddf0944d3d0a731b5cb1c970 (diff) | |
| parent | 7696b1c0b8f409fdcd9e171b7e8a51c29661a2da (diff) | |
Merge pull request #2466 from embassy-rs/fix-h7-tests
tests/stm32: fix h7 wrong smps config.
| -rw-r--r-- | tests/stm32/src/common.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/stm32/src/common.rs b/tests/stm32/src/common.rs index 313380b35..fefe72c86 100644 --- a/tests/stm32/src/common.rs +++ b/tests/stm32/src/common.rs | |||
| @@ -394,6 +394,10 @@ pub fn config() -> Config { | |||
| 394 | config.rcc.apb4_pre = APBPrescaler::DIV2; // 100 Mhz | 394 | config.rcc.apb4_pre = APBPrescaler::DIV2; // 100 Mhz |
| 395 | config.rcc.voltage_scale = VoltageScale::Scale1; | 395 | config.rcc.voltage_scale = VoltageScale::Scale1; |
| 396 | config.rcc.adc_clock_source = AdcClockSource::PLL2_P; | 396 | config.rcc.adc_clock_source = AdcClockSource::PLL2_P; |
| 397 | #[cfg(any(feature = "stm32h755zi"))] | ||
| 398 | { | ||
| 399 | config.rcc.supply_config = SupplyConfig::DirectSMPS; | ||
| 400 | } | ||
| 397 | } | 401 | } |
| 398 | 402 | ||
| 399 | #[cfg(any(feature = "stm32h7a3zi"))] | 403 | #[cfg(any(feature = "stm32h7a3zi"))] |
