stm32: run cargo fmt

This commit is contained in:
techmccat 2025-03-28 10:45:14 +01:00
parent 0621087f6f
commit ce578b62b8
2 changed files with 8 additions and 2 deletions

View File

@ -127,7 +127,10 @@ pub(crate) unsafe fn init(config: Config) {
let sys = match config.sys {
Sysclk::HSISYS => unwrap!(hsisys),
Sysclk::HSE => unwrap!(hse),
Sysclk::LSI => { assert!(config.ls.lsi); LSI_FREQ }
Sysclk::LSI => {
assert!(config.ls.lsi);
LSI_FREQ
}
Sysclk::LSE => unwrap!(config.ls.lse).frequency,
_ => unreachable!(),
};

View File

@ -241,7 +241,10 @@ pub(crate) unsafe fn init(config: Config) {
Sysclk::HSI => unwrap!(hsisys),
Sysclk::HSE => unwrap!(hse),
Sysclk::PLL1_R => unwrap!(pll.pll_r),
Sysclk::LSI => { assert!(config.ls.lsi); LSI_FREQ }
Sysclk::LSI => {
assert!(config.ls.lsi);
LSI_FREQ
}
Sysclk::LSE => unwrap!(config.ls.lse).frequency,
_ => unreachable!(),
};