Add support for stm32f4 additional PLL SAI divider

I'm as new to Rust as to Embassy, so sorry if this does not match your coding standards, but at least it works.
This commit is contained in:
I--P 2024-10-09 14:44:51 +02:00 committed by GitHub
parent ff1a0a160c
commit 55d85e1ca3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -200,8 +200,6 @@ pub(crate) unsafe fn init(config: Config) {
RCC.dckcfgr().modify(|w| w.set_pllsaidivq(config.pllsai_divdivq)); RCC.dckcfgr().modify(|w| w.set_pllsaidivq(config.pllsai_divdivq));
pllsai.q = Some(unwrap!(pllsai.q) / (1 + config.pllsai_divdivq.to_bits())); pllsai.q = Some(unwrap!(pllsai.q) / (1 + config.pllsai_divdivq.to_bits()));
info!("KAPOUE {}",pllsai.q);
// Configure sysclk // Configure sysclk
let sys = match config.sys { let sys = match config.sys {
Sysclk::HSI => unwrap!(hsi), Sysclk::HSI => unwrap!(hsi),