-
Notifications
You must be signed in to change notification settings - Fork 790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for stm32f4 additional PLL SAI divider #3406
base: main
Are you sure you want to change the base?
Conversation
embassy-stm32/src/rcc/f247.rs
Outdated
|
||
info!("KAPOUE {}",pllsai.q); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
something left over from debugging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OMG sorry :-)
Should I update my PR for that or will you delete it ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries, it is your PR you do it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't have to close the PR to update it, just commit to the branch on your own repo that you are trying to merge. That way the PR updates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I've not used github for years, I hope I didn't destroy everything, is it ok now ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if you can do it after you closed the PR, maybe it is possible to re-open? idk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's reopened, hopefully it's ok now
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 = match pllsai.q { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could be a map, what is even happening here?
This PR adds support to the second divider of the PLL SAI clock found on stm32f4 boards.
I'm as new to embassy as to rust so this code will certainly not match your coding standards, but at least it works.