diff options
| author | chemicstry <[email protected]> | 2022-07-10 21:46:14 +0300 |
|---|---|---|
| committer | chemicstry <[email protected]> | 2022-07-10 21:46:14 +0300 |
| commit | 3bf1e1d4aaefeeed9836060ea62b9d064e4fbe58 (patch) | |
| tree | c80fd23f5af877202e16c6ae9eb91a93d76e08c4 /embassy-stm32 | |
| parent | f43545f36ed6bd154c59106c8b7602b10d635a42 (diff) | |
Fix f2, wl compilation
Diffstat (limited to 'embassy-stm32')
| -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. |
