diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-09-26 05:14:21 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-09-26 05:15:09 +0200 |
| commit | a57e48459eadff1776574f284a2d0a5d0b58a375 (patch) | |
| tree | c508d92f5f9295350309dfafa0a6318cd1495bc8 /embassy-stm32 | |
| parent | c604d8a8f1b633874117fcf01018121f4fe05867 (diff) | |
stm32/rcc: remove bad limits on l5.
Diffstat (limited to 'embassy-stm32')
| -rw-r--r-- | embassy-stm32/src/rcc/l5.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/embassy-stm32/src/rcc/l5.rs b/embassy-stm32/src/rcc/l5.rs index 553b1619e..652bdcb7b 100644 --- a/embassy-stm32/src/rcc/l5.rs +++ b/embassy-stm32/src/rcc/l5.rs | |||
| @@ -317,11 +317,6 @@ pub(crate) unsafe fn init(config: Config) { | |||
| 317 | 317 | ||
| 318 | let freq = (src_freq / prediv.to_div() * mul.to_mul()) / div.to_div(); | 318 | let freq = (src_freq / prediv.to_div() * mul.to_mul()) / div.to_div(); |
| 319 | 319 | ||
| 320 | #[cfg(any(stm32l4px, stm32l4qx, stm32l4rx, stm32l4sx))] | ||
| 321 | assert!(freq <= 120_000_000); | ||
| 322 | #[cfg(not(any(stm32l4px, stm32l4qx, stm32l4rx, stm32l4sx)))] | ||
| 323 | assert!(freq <= 80_000_000); | ||
| 324 | |||
| 325 | RCC.pllcfgr().write(move |w| { | 320 | RCC.pllcfgr().write(move |w| { |
| 326 | w.set_plln(mul.into()); | 321 | w.set_plln(mul.into()); |
| 327 | w.set_pllm(prediv.into()); | 322 | w.set_pllm(prediv.into()); |
