mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +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));
|
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),
|
||||||
|
Loading…
Reference in New Issue
Block a user