aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/rcc/g0.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-stm32/src/rcc/g0.rs')
-rw-r--r--embassy-stm32/src/rcc/g0.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/embassy-stm32/src/rcc/g0.rs b/embassy-stm32/src/rcc/g0.rs
index ce6398afd..2665c20f9 100644
--- a/embassy-stm32/src/rcc/g0.rs
+++ b/embassy-stm32/src/rcc/g0.rs
@@ -294,6 +294,12 @@ pub(crate) unsafe fn init(config: Config) {
294 RCC.cr().modify(|w| w.set_hsion(false)); 294 RCC.cr().modify(|w| w.set_hsion(false));
295 } 295 }
296 296
297 // Disable the HSI48, if not used
298 #[cfg(crs)]
299 if config.hsi48.is_none() {
300 super::disable_hsi48();
301 }
302
297 if config.low_power_run { 303 if config.low_power_run {
298 assert!(sys <= Hertz(2_000_000)); 304 assert!(sys <= Hertz(2_000_000));
299 PWR.cr1().modify(|w| w.set_lpr(true)); 305 PWR.cr1().modify(|w| w.set_lpr(true));