Skip to content
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

Sysclk handling in Rcc::CFGR::freeze() is inconsistent when a PLL is used #247

Open
fhars opened this issue Sep 5, 2021 · 0 comments
Open

Comments

@fhars
Copy link

fhars commented Sep 5, 2021

As far as I understand the code, all clock calculations in freeze() use the last sysclk value specified with either the sysclk() or the sysclk_with_pll() methods, but if sysclk_wit_pll() has been called at least once, the actual sysclk used is the output_clock as calculated in let output_clock = vco / r;, which can be a completely different value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant