STM32F0 fix using HSI48 as SYSCLK on devices with CRS

Fixes #3651
This commit is contained in:
Fabian Wolter 2024-12-14 23:32:08 +01:00
parent 45d9bd5757
commit 4b31639dca

View File

@ -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!(),
};