diff options
| -rw-r--r-- | embassy-stm32/src/rcc/f2.rs | 2 | ||||
| -rw-r--r-- | embassy-stm32/src/rcc/wl.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/rcc/f2.rs b/embassy-stm32/src/rcc/f2.rs index cfc527630..d543888c1 100644 --- a/embassy-stm32/src/rcc/f2.rs +++ b/embassy-stm32/src/rcc/f2.rs | |||
| @@ -454,7 +454,7 @@ pub(crate) unsafe fn init(config: Config) { | |||
| 454 | let (sys_clk, sw) = match config.mux { | 454 | let (sys_clk, sw) = match config.mux { |
| 455 | ClockSrc::HSI => { | 455 | ClockSrc::HSI => { |
| 456 | assert!(config.hsi, "HSI must be enabled to be used as system clock"); | 456 | assert!(config.hsi, "HSI must be enabled to be used as system clock"); |
| 457 | (HSI, Sw::HSI) | 457 | (HSI_FREQ, Sw::HSI) |
| 458 | } | 458 | } |
| 459 | ClockSrc::HSE => { | 459 | ClockSrc::HSE => { |
| 460 | let hse_config = config | 460 | let hse_config = config |
diff --git a/embassy-stm32/src/rcc/wl.rs b/embassy-stm32/src/rcc/wl.rs index 195e8c8a9..33ecaa361 100644 --- a/embassy-stm32/src/rcc/wl.rs +++ b/embassy-stm32/src/rcc/wl.rs | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | use crate::pac::{FLASH, RCC}; | 1 | use crate::pac::{FLASH, RCC}; |
| 2 | use crate::rcc::{set_freqs, Clocks}; | 2 | use crate::rcc::{set_freqs, Clocks}; |
| 3 | use crate::time::U32Ext; | 3 | use crate::time::{Hertz, U32Ext}; |
| 4 | 4 | ||
| 5 | /// Most of clock setup is copied from stm32l0xx-hal, and adopted to the generated PAC, | 5 | /// Most of clock setup is copied from stm32l0xx-hal, and adopted to the generated PAC, |
| 6 | /// and with the addition of the init function to configure a system clock. | 6 | /// and with the addition of the init function to configure a system clock. |
