diff options
| author | Dominic <[email protected]> | 2024-02-02 13:47:26 +0100 |
|---|---|---|
| committer | Dominic <[email protected]> | 2024-03-09 11:55:09 +0100 |
| commit | fadffc5061f4eb26886a14a2ecc7e9d11bbb7b0c (patch) | |
| tree | 0303d994ff468b14ac21cf421c1d95438ddb1b5e | |
| parent | 7718d66053f6b8aef7c5d56652e29d7142eee072 (diff) | |
Fix incorrect D1CPRE max for STM32H7 RM0468
| -rw-r--r-- | embassy-stm32/src/rcc/h.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/rcc/h.rs b/embassy-stm32/src/rcc/h.rs index bab8bb19e..9251df162 100644 --- a/embassy-stm32/src/rcc/h.rs +++ b/embassy-stm32/src/rcc/h.rs | |||
| @@ -455,7 +455,7 @@ pub(crate) unsafe fn init(config: Config) { | |||
| 455 | }; | 455 | }; |
| 456 | #[cfg(pwr_h7rm0468)] | 456 | #[cfg(pwr_h7rm0468)] |
| 457 | let (d1cpre_clk_max, hclk_max, pclk_max) = match config.voltage_scale { | 457 | let (d1cpre_clk_max, hclk_max, pclk_max) = match config.voltage_scale { |
| 458 | VoltageScale::Scale0 => (Hertz(520_000_000), Hertz(275_000_000), Hertz(137_500_000)), | 458 | VoltageScale::Scale0 => (Hertz(550_000_000), Hertz(275_000_000), Hertz(137_500_000)), |
| 459 | VoltageScale::Scale1 => (Hertz(400_000_000), Hertz(200_000_000), Hertz(100_000_000)), | 459 | VoltageScale::Scale1 => (Hertz(400_000_000), Hertz(200_000_000), Hertz(100_000_000)), |
| 460 | VoltageScale::Scale2 => (Hertz(300_000_000), Hertz(150_000_000), Hertz(75_000_000)), | 460 | VoltageScale::Scale2 => (Hertz(300_000_000), Hertz(150_000_000), Hertz(75_000_000)), |
| 461 | VoltageScale::Scale3 => (Hertz(170_000_000), Hertz(85_000_000), Hertz(42_500_000)), | 461 | VoltageScale::Scale3 => (Hertz(170_000_000), Hertz(85_000_000), Hertz(42_500_000)), |
