Skip to content

Commit

Permalink
Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
I--P authored Oct 11, 2024
1 parent 55d85e1 commit 97aa44b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion embassy-stm32/src/rcc/f247.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,14 @@ pub(crate) unsafe fn init(config: Config) {
let mut pllsai = init_pll(PllInstance::Pllsai, config.pllsai, &pll_input);
#[cfg(any(stm32f446, stm32f427, stm32f437, stm32f4x9, stm32f7))]
RCC.dckcfgr().modify(|w| w.set_pllsaidivq(config.pllsai_divdivq));
pllsai.q = Some(unwrap!(pllsai.q) / (1 + config.pllsai_divdivq.to_bits()));
pllsai.q = match pllsai.q {
Some(q) => {
Some(q/ (1 + config.pllsai_divdivq.to_bits()))
},
None => {None}
};

info!("KAPOUE {}",pllsai.q);
// Configure sysclk
let sys = match config.sys {
Sysclk::HSI => unwrap!(hsi),
Expand Down

0 comments on commit 97aa44b

Please sign in to comment.