-
Notifications
You must be signed in to change notification settings - Fork 2k
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
cpu/stm32: merge clock source selection headers #15657
cpu/stm32: merge clock source selection headers #15657
Conversation
c90a51d
to
e8b63e8
Compare
e8b63e8
to
8d9309b
Compare
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.
looks good to me. Some comments inline
ping @aabadie |
8d9309b
to
dd34fef
Compare
All comments are addressed! |
I ran some |
@aabadie there are some static checks comments |
b8395c2
to
5fef40a
Compare
They are fixed 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.
ACK, As @maribu stated changes look good, I did some testing for regressions on most stm32, all looks good.
Thanks for reviewing and testing ! |
Contribution description
The clock source selection in STM32 is divided in 2 families: the Lx/WB and the other families. In master, all this clock source selection is duplicated in each family groups (f0f1f3, f2f4f7, g0, g4, l0l1, l4l5wb and mp1).
This PR is moving all this clock selection configuration in 2 separate header files that are included for the corresponding families. This removes a lot of duplicated code.
There's also a commit that use
clk_conf.h
in all F7 boards, this was a leftover from previous refactoring and another one that is merging the g0 and g4 clock configuration header (because they are very similar).Testing procedure
nucleo-l552ze-q
nucleo-g431rb
nucleo-g071rb
nucleo-f103rb
nucleo-f410rb
nucleo-l073rz
Issues/PRs references
Ticks another item in #14975
Based on #15650