diff options
| author | Bernát Süli <[email protected]> | 2025-12-19 04:15:57 +0100 |
|---|---|---|
| committer | Bernát Süli <[email protected]> | 2025-12-19 04:15:57 +0100 |
| commit | 1c860d4a6e283e24a4609ff8b1ca2cc3cbf2f428 (patch) | |
| tree | f6480fdeb63b3f3d5a278d25754ffd347bd3c7b9 /embassy-stm32/src/rcc/h.rs | |
| parent | 58cb57aa88ff6caa77087d650068aee367092dc8 (diff) | |
stm32: disable HSI48 if not in use
Diffstat (limited to 'embassy-stm32/src/rcc/h.rs')
| -rw-r--r-- | embassy-stm32/src/rcc/h.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/embassy-stm32/src/rcc/h.rs b/embassy-stm32/src/rcc/h.rs index 485edd390..2fe2a435c 100644 --- a/embassy-stm32/src/rcc/h.rs +++ b/embassy-stm32/src/rcc/h.rs | |||
| @@ -671,6 +671,12 @@ pub(crate) unsafe fn init(config: Config) { | |||
| 671 | RCC.cr().modify(|w| w.set_hsion(false)); | 671 | RCC.cr().modify(|w| w.set_hsion(false)); |
| 672 | } | 672 | } |
| 673 | 673 | ||
| 674 | // Disable the HSI48, if not used | ||
| 675 | #[cfg(crs)] | ||
| 676 | if config.hsi48.is_none() { | ||
| 677 | super::disable_hsi48(); | ||
| 678 | } | ||
| 679 | |||
| 674 | // IO compensation cell - Requires CSI clock and SYSCFG | 680 | // IO compensation cell - Requires CSI clock and SYSCFG |
| 675 | #[cfg(any(stm32h7))] // TODO h5, h7rs | 681 | #[cfg(any(stm32h7))] // TODO h5, h7rs |
| 676 | if csi.is_some() { | 682 | if csi.is_some() { |
