Skip to content

Commit

Permalink
Merge pull request #3652 from fwolter/fix-hsi48
Browse files Browse the repository at this point in the history
STM32F0 fix using HSI48 as SYSCLK on devices with CRS
  • Loading branch information
Dirbaio authored Dec 15, 2024
2 parents 45d9bd5 + 4b31639 commit 63cc5ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions embassy-stm32/src/rcc/f013.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(),
};

Expand Down

0 comments on commit 63cc5ce

Please sign in to comment.