diff options
Diffstat (limited to 'embassy-stm32/src/rcc/l.rs')
| -rw-r--r-- | embassy-stm32/src/rcc/l.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-stm32/src/rcc/l.rs b/embassy-stm32/src/rcc/l.rs index 0d668103c..a1dfefd15 100644 --- a/embassy-stm32/src/rcc/l.rs +++ b/embassy-stm32/src/rcc/l.rs | |||
| @@ -385,6 +385,11 @@ pub(crate) unsafe fn init(config: Config) { | |||
| 385 | while !RCC.extcfgr().read().c2hpref() {} | 385 | while !RCC.extcfgr().read().c2hpref() {} |
| 386 | } | 386 | } |
| 387 | 387 | ||
| 388 | // Disable HSI if not used | ||
| 389 | if !config.hsi { | ||
| 390 | RCC.cr().modify(|w| w.set_hsion(false)); | ||
| 391 | } | ||
| 392 | |||
| 388 | config.mux.init(); | 393 | config.mux.init(); |
| 389 | 394 | ||
| 390 | set_clocks!( | 395 | set_clocks!( |
