diff options
Diffstat (limited to 'embassy-stm32/src/rcc/c0.rs')
| -rw-r--r-- | embassy-stm32/src/rcc/c0.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/embassy-stm32/src/rcc/c0.rs b/embassy-stm32/src/rcc/c0.rs index 99f22273d..7801078c3 100644 --- a/embassy-stm32/src/rcc/c0.rs +++ b/embassy-stm32/src/rcc/c0.rs | |||
| @@ -185,6 +185,12 @@ pub(crate) unsafe fn init(config: Config) { | |||
| 185 | RCC.cr().modify(|w| w.set_hsion(false)); | 185 | RCC.cr().modify(|w| w.set_hsion(false)); |
| 186 | } | 186 | } |
| 187 | 187 | ||
| 188 | // Disable the HSI48, if not used | ||
| 189 | #[cfg(crs)] | ||
| 190 | if config.hsi48.is_none() { | ||
| 191 | super::disable_hsi48(); | ||
| 192 | } | ||
| 193 | |||
| 188 | config.mux.init(); | 194 | config.mux.init(); |
| 189 | 195 | ||
| 190 | set_clocks!( | 196 | set_clocks!( |
