mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
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:
parent
ff1a0a160c
commit
55d85e1ca3
@ -200,8 +200,6 @@ pub(crate) unsafe fn init(config: Config) {
|
||||
RCC.dckcfgr().modify(|w| w.set_pllsaidivq(config.pllsai_divdivq));
|
||||
pllsai.q = Some(unwrap!(pllsai.q) / (1 + config.pllsai_divdivq.to_bits()));
|
||||
|
||||
|
||||
info!("KAPOUE {}",pllsai.q);
|
||||
// Configure sysclk
|
||||
let sys = match config.sys {
|
||||
Sysclk::HSI => unwrap!(hsi),
|
||||
|
Loading…
Reference in New Issue
Block a user