diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-01-20 01:47:56 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-01-20 01:52:21 +0100 |
| commit | 7696b1c0b8f409fdcd9e171b7e8a51c29661a2da (patch) | |
| tree | 6bb97db1b94554184a8564a46d9ad74c65b2ee56 /tests | |
| parent | a2eb46e9e458abec477a118ddbec12ae3f9f0900 (diff) | |
tests/stm32: fix h7 wrong smps config.
Diffstat (limited to 'tests')
| -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"))] |
