From 4b31639dcacd23ce24d9a33d3a491c8d58ca9cfd Mon Sep 17 00:00:00 2001 From: Fabian Wolter Date: Sat, 14 Dec 2024 23:32:08 +0100 Subject: [PATCH] STM32F0 fix using HSI48 as SYSCLK on devices with CRS Fixes #3651 --- embassy-stm32/src/rcc/f013.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/embassy-stm32/src/rcc/f013.rs b/embassy-stm32/src/rcc/f013.rs index c915f1b164..a38ca955e1 100644 --- a/embassy-stm32/src/rcc/f013.rs +++ b/embassy-stm32/src/rcc/f013.rs @@ -229,6 +229,9 @@ pub(crate) unsafe fn init(config: Config) { Sysclk::HSI => unwrap!(hsi), Sysclk::HSE => unwrap!(hse), Sysclk::PLL1_P => unwrap!(pll), + #[cfg(crs)] + Sysclk::HSI48 => unwrap!(hsi48), + #[cfg(not(crs))] _ => unreachable!(), };