diff options
| -rw-r--r-- | embassy-stm32/src/rcc/l.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/embassy-stm32/src/rcc/l.rs b/embassy-stm32/src/rcc/l.rs index 9079ddd41..d40ea0c53 100644 --- a/embassy-stm32/src/rcc/l.rs +++ b/embassy-stm32/src/rcc/l.rs | |||
| @@ -157,6 +157,13 @@ pub(crate) unsafe fn init(config: Config) { | |||
| 157 | while RCC.cfgr().read().sws() != Sysclk::MSI {} | 157 | while RCC.cfgr().read().sws() != Sysclk::MSI {} |
| 158 | } | 158 | } |
| 159 | 159 | ||
| 160 | #[cfg(stm32wl)] | ||
| 161 | { | ||
| 162 | // Set max latency | ||
| 163 | FLASH.acr().modify(|w| w.set_prften(true)); | ||
| 164 | FLASH.acr().modify(|w| w.set_latency(2)); | ||
| 165 | } | ||
| 166 | |||
| 160 | // Set voltage scale | 167 | // Set voltage scale |
| 161 | #[cfg(any(stm32l0, stm32l1))] | 168 | #[cfg(any(stm32l0, stm32l1))] |
| 162 | { | 169 | { |
