Fix f2, wl compilation
This commit is contained in:
parent
f43545f36e
commit
3bf1e1d4aa
@ -454,7 +454,7 @@ pub(crate) unsafe fn init(config: Config) {
|
|||||||
let (sys_clk, sw) = match config.mux {
|
let (sys_clk, sw) = match config.mux {
|
||||||
ClockSrc::HSI => {
|
ClockSrc::HSI => {
|
||||||
assert!(config.hsi, "HSI must be enabled to be used as system clock");
|
assert!(config.hsi, "HSI must be enabled to be used as system clock");
|
||||||
(HSI, Sw::HSI)
|
(HSI_FREQ, Sw::HSI)
|
||||||
}
|
}
|
||||||
ClockSrc::HSE => {
|
ClockSrc::HSE => {
|
||||||
let hse_config = config
|
let hse_config = config
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use crate::pac::{FLASH, RCC};
|
use crate::pac::{FLASH, RCC};
|
||||||
use crate::rcc::{set_freqs, Clocks};
|
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,
|
/// 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.
|
/// and with the addition of the init function to configure a system clock.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user