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