Fix f2, wl compilation

This commit is contained in:
chemicstry 2022-07-10 21:46:14 +03:00
parent f43545f36e
commit 3bf1e1d4aa
2 changed files with 2 additions and 2 deletions

View file

@ -454,7 +454,7 @@ pub(crate) unsafe fn init(config: Config) {
let (sys_clk, sw) = match config.mux {
ClockSrc::HSI => {
assert!(config.hsi, "HSI must be enabled to be used as system clock");
(HSI, Sw::HSI)
(HSI_FREQ, Sw::HSI)
}
ClockSrc::HSE => {
let hse_config = config

View file

@ -1,6 +1,6 @@
use crate::pac::{FLASH, RCC};
use crate::rcc::{set_freqs, Clocks};
use crate::time::U32Ext;
use crate::time::{Hertz, U32Ext};
/// Most of clock setup is copied from stm32l0xx-hal, and adopted to the generated PAC,
/// and with the addition of the init function to configure a system clock.