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 76c06e9f8..e9266c65b 100644 --- a/embassy-stm32/src/rcc/l.rs +++ b/embassy-stm32/src/rcc/l.rs | |||
| @@ -159,6 +159,13 @@ pub(crate) unsafe fn init(config: Config) { | |||
| 159 | while RCC.cfgr().read().sws() != Sysclk::MSI {} | 159 | while RCC.cfgr().read().sws() != Sysclk::MSI {} |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | #[cfg(stm32wl)] | ||
| 163 | { | ||
| 164 | // Set max latency | ||
| 165 | FLASH.acr().modify(|w| w.set_prften(true)); | ||
| 166 | FLASH.acr().modify(|w| w.set_latency(2)); | ||
| 167 | } | ||
| 168 | |||
| 162 | // Set voltage scale | 169 | // Set voltage scale |
| 163 | #[cfg(any(stm32l0, stm32l1))] | 170 | #[cfg(any(stm32l0, stm32l1))] |
| 164 | { | 171 | { |
