cpu/stm32f[0|1|3] unify stmclk with stm32_common#7500
cpu/stm32f[0|1|3] unify stmclk with stm32_common#7500aabadie merged 8 commits intoRIOT-OS:masterfrom
Conversation
|
Ran a few tests. examples/default, tests/xtimer_msg, tests/driver_sx127x:
|
|
doesn't build with nucleo32-f031 |
|
@aabadie I updated only nucleo-f091 and nucleo-f103 so far, others need to be ported too |
I saw that. Just nucleo32-f042, nucleo32-f031 and stm32f0disco remain. I think the first 2 don't have HSE (they are configured on HSI) |
|
Indeed, nucleo32 do not have HSE IIRC |
|
updated nucleo32-f031 / f042 |
|
great! unfortunately I won't be able to test before next week... |
7e1c304 to
37d110b
Compare
7360b76 to
a122d61
Compare
|
It turned out f3 is very similar to f0 and f1, so merging it as well. |
7f12df3 to
21ca774
Compare
|
Rebased on master |
cpu/stm32f1/stmclk.c
Outdated
| @@ -27,7 +27,7 @@ | |||
| #include "cpu.h" | |||
There was a problem hiding this comment.
can't we remove this file completely now?
There was a problem hiding this comment.
I forgot it, but we must remove it, for sure!
aabadie
left a comment
There was a problem hiding this comment.
Notes for stm32f3 are missing in the documentation of the clock configuration generator.
See the comments below.
I'll test on my f3 boards asap. Hope it can be merged today.
cpu/stm32_common/doc.txt
Outdated
| * @ref cpu_stm32l4, @ref cpu_stm32f7. | ||
| * | ||
| * STM32F[2|4|7] Clock configuration | ||
| * STM32F[0|1|2|4|7] Clock configuration |
cpu/stm32_common/doc.txt
Outdated
| * ================================= | ||
| * | ||
| * stm32f2, stm32f4 and stm32f7 cpus share clock configuration code and macro. | ||
| * stm32f0, stm32f1, stm32f2, stm32f4 and stm32f7 cpus share clock configuration |
cpu/stm32_common/doc.txt
Outdated
| * (CLOCK_APB2_DIV is not needed for stm32f0) | ||
| * The following macro must be defined for stm32f[2|4|7]: | ||
| * - CLOCK_PLL_M, CLOCK_PLL_N, CLOCK_PLL_P, CLOCK_PLL_Q: Main PLL factors | ||
| * The following macro must be defined for stm32f[0|1]: |
|
Test results:
|
|
Fixed doc, I also anticipated a bit #7537 in the doc |
|
Thanks for the test effort @aabadie ! |
aabadie
left a comment
There was a problem hiding this comment.
ACK (I'm fine with the doc anticipation)
|
Please squash |
56ca19f to
a4b25ad
Compare
|
Squashed |
|
Murdock is green, go! |
Based on #7477
Another step in unifying clock config for stm32.
F0 and F1 are quite similar for clock config.
I can test only on nucleo-f091 and nucleo32-f042
I don't plan to work on stm32lx cpu