diff options
| author | xoviat <[email protected]> | 2025-12-18 15:49:01 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-18 15:49:01 +0000 |
| commit | c3b5b1243f9ac80c85dc2fd1f88788a60baafd2f (patch) | |
| tree | ab8b14e2469feac344d5fc3834a5a44e81868ad4 /embassy-stm32/src/rcc/wba.rs | |
| parent | da16ea77af0fdd875ac568d5e2da1931b8740892 (diff) | |
| parent | de15ffcb4cf0db64d46bf49bd0e7bed41cdeacba (diff) | |
Merge pull request #5103 from Sha0S/main
stm32: disable HSI if not used
Diffstat (limited to 'embassy-stm32/src/rcc/wba.rs')
| -rw-r--r-- | embassy-stm32/src/rcc/wba.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-stm32/src/rcc/wba.rs b/embassy-stm32/src/rcc/wba.rs index 2528996d5..4ab3067bc 100644 --- a/embassy-stm32/src/rcc/wba.rs +++ b/embassy-stm32/src/rcc/wba.rs | |||
| @@ -269,6 +269,11 @@ pub(crate) unsafe fn init(config: Config) { | |||
| 269 | 269 | ||
| 270 | let lsi = config.ls.lsi.then_some(LSI_FREQ); | 270 | let lsi = config.ls.lsi.then_some(LSI_FREQ); |
| 271 | 271 | ||
| 272 | // Disable HSI if not used | ||
| 273 | if !config.hsi { | ||
| 274 | RCC.cr().modify(|w| w.set_hsion(false)); | ||
| 275 | } | ||
| 276 | |||
| 272 | config.mux.init(); | 277 | config.mux.init(); |
| 273 | 278 | ||
| 274 | set_clocks!( | 279 | set_clocks!( |
