aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/src/rcc/f2.rs2
-rw-r--r--embassy-stm32/src/rcc/wl.rs2
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 @@
1use crate::pac::{FLASH, RCC}; 1use crate::pac::{FLASH, RCC};
2use crate::rcc::{set_freqs, Clocks}; 2use crate::rcc::{set_freqs, Clocks};
3use crate::time::U32Ext; 3use 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.