cpu/stm32: cleanup interrupt vectors#7485
Conversation
ef6321e to
2250d22
Compare
|
I am not sure if we can't do better, I think this is definitively a big improvement in terms of readability (and just see the number of bugs found with this refactoring...). So for now I like the PR. @vincent-d what do you say about it? |
Agreed, and I didn't want this PR to be the ultimate solution. I already tried different things in #6617 but none were accepted (for many reasons). |
|
I like it! It's much easier to read than before (thanks to the |
cpu/stm32f3/vectors.c
Outdated
| (void*) isr_spi4, /* [84] SPI4 global Interrupt */ | ||
| #endif | ||
| #endif | ||
| }; No newline at end of file |
There was a problem hiding this comment.
Fixed, directly squashed
cpu/stm32l4/vectors.c
Outdated
| (void*) isr_tim1_trg_com_tim17, /* [26] TIM1 Trigger and Commutation Interrupt */ | ||
| (void*) isr_tim1_cc, /* [27] TIM1 Capture Compare Interrupt */ | ||
| (void*) isr_tim2, /* [28] TIM2 global Interrupt */ | ||
| #if defined(STM32L432KC) |
There was a problem hiding this comment.
This is wrong: should be CPU_MODEL_STM32L432KC
2250d22 to
3498ddc
Compare
|
As said, I also like it. But before giving my ACK, I would like to do some more intensive testing, as this PR has means to break quite a bit of boards :-) Should we somehow synchronize testing efforts? |
That would be good indeed :) |
|
Another question: what kind of tests ? (all configured periph tests I guess ?) |
|
we can't test everything, but testing the default example (incl. SAUL mappings to the button) and maybe a timer test for selected boards together with a thorough code review should do the trick. |
3498ddc to
ab292a9
Compare
ab292a9 to
a02ba69
Compare
|
Confirmed working on the discovery boards. I think we have covered enough boards to verify this PR, so we can safely merge this. |
haukepetersen
left a comment
There was a problem hiding this comment.
ACK after giving this another thorough review. Still amazing how many miss-configurations we had in the code before...
+1 |
|
and go. |
After doing this for stm32f7 family in #6991, I though it would be nice to do it for the others family.
The strategy is the same:
vectors.cas readable as possible.While working on this, some issues were fixed:
Boards/CPU to test (feel free to add any missing ones):
shell brokenfixed