mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-30 13:50:37 +00:00
Fix crash caused by using higher MSI on STM32WL
This commit is contained in:
parent
328cb99068
commit
803b76df86
@ -157,6 +157,13 @@ pub(crate) unsafe fn init(config: Config) {
|
||||
while RCC.cfgr().read().sws() != Sysclk::MSI {}
|
||||
}
|
||||
|
||||
#[cfg(stm32wl)]
|
||||
{
|
||||
// Set max latency
|
||||
FLASH.acr().modify(|w| w.set_prften(true));
|
||||
FLASH.acr().modify(|w| w.set_latency(2));
|
||||
}
|
||||
|
||||
// Set voltage scale
|
||||
#[cfg(any(stm32l0, stm32l1))]
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user