diff options
| author | Oliver Rockstedt <[email protected]> | 2023-12-15 13:53:06 +0100 |
|---|---|---|
| committer | Oliver Rockstedt <[email protected]> | 2023-12-15 13:53:06 +0100 |
| commit | c17fee27bb37233df7300bea3c2658f87df9dd6b (patch) | |
| tree | 7de5249467daae041a134c6ee9a27c9ac0162ad2 | |
| parent | a8d0da91dc7b43bb05b200e7f530e58e25f20194 (diff) | |
STM32H7: limit max frequency to 520MHz until cpu frequency boost option is implemented
| -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 f28bd0b9d..389b2a871 100644 --- a/embassy-stm32/src/rcc/h.rs +++ b/embassy-stm32/src/rcc/h.rs | |||
| @@ -480,7 +480,7 @@ pub(crate) unsafe fn init(config: Config) { | |||
| 480 | }; | 480 | }; |
| 481 | #[cfg(pwr_h7rm0468)] | 481 | #[cfg(pwr_h7rm0468)] |
| 482 | let (d1cpre_clk_max, hclk_max, pclk_max) = match config.voltage_scale { | 482 | let (d1cpre_clk_max, hclk_max, pclk_max) = match config.voltage_scale { |
| 483 | VoltageScale::Scale0 => (Hertz(550_000_000), Hertz(275_000_000), Hertz(137_500_000)), | 483 | VoltageScale::Scale0 => (Hertz(520_000_000), Hertz(275_000_000), Hertz(137_500_000)), |
| 484 | VoltageScale::Scale1 => (Hertz(400_000_000), Hertz(200_000_000), Hertz(100_000_000)), | 484 | VoltageScale::Scale1 => (Hertz(400_000_000), Hertz(200_000_000), Hertz(100_000_000)), |
| 485 | VoltageScale::Scale2 => (Hertz(300_000_000), Hertz(150_000_000), Hertz(75_000_000)), | 485 | VoltageScale::Scale2 => (Hertz(300_000_000), Hertz(150_000_000), Hertz(75_000_000)), |
| 486 | VoltageScale::Scale3 => (Hertz(170_000_000), Hertz(85_000_000), Hertz(42_500_000)), | 486 | VoltageScale::Scale3 => (Hertz(170_000_000), Hertz(85_000_000), Hertz(42_500_000)), |
