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
stm32f1: add a struct based rcc clock setup like other families #1172
Comments
Also, the current stm32f1 clock switching routines assume that they are run directly after reset. For example, if you call rcc_clock_setup_in_hsi_out_48mhz() and then rcc_clock_setup_in_hse_8mhz_out_72mhz(), clocks are misconfigured for two different reasons:
It would be great if the clock unification fixed these problems. (It seems that the unified method handles that, at least when I looked at stm32f4.) |
it's a common problem yes, scaling up and down isn't always handled correctly, it was partly addressed for one family here: 095ed85 but it's definitely not robustly implemented for every possible use case. |
As on every other family. Fixes: libopencm3#1172
Leave the existing static functions, but mark them all deprecated.
Add a new struct based method similar to other stm32s. Goal is for API unification, or at least consistency. Fixes the last major issue in #266 and makes requests like #1171 easier
The text was updated successfully, but these errors were encountered: