boards/stm32: introduce common timer configurations and use them where possible#11809
Merged
fjmolinas merged 10 commits intoRIOT-OS:masterfrom Aug 6, 2019
Merged
Conversation
af7f0d3 to
96dee3c
Compare
Contributor
|
@aabadie please rebase. |
This also requires to include the STM32 shared include directory
This requires including STM32 common include directoy as well
96dee3c to
927f283
Compare
fjmolinas
reviewed
Aug 6, 2019
Contributor
fjmolinas
left a comment
There was a problem hiding this comment.
Code looks good. I'm running tests to verify nothing has been broken.
Contributor
|
I ran the tests, seem like only expected to fail tests are failing, see details: nucleo-f207zg/failuresummary.mdnucleo-f303k8/failuresummary.mdnucleo-f446re/failuresummary.mdnucleo-l073rz/failuresummary.mdnucleo-l152re/failuresummary.mdnucleo-l432kc/failuresummary.mdnucleo-f103rb/failuresummary.mdThese fail because of nucleo-f091rc/failuresummary.md
For nucleo-f7/failuresummary.mdFailures during test: ``` - [tests/bloom_bytes](tests/bloom_bytes/test.failed) - [tests/float](tests/float/test.failed) - [tests/gnrc_ipv6_ext](tests/gnrc_ipv6_ext/test.failed) - [tests/gnrc_rpl_srh](tests/gnrc_rpl_srh/test.failed) - [tests/gnrc_sock_dns](tests/gnrc_sock_dns/test.failed) - [tests/libfixmath_unittests](tests/libfixmath_unittests/test.failed) - [tests/pkg_cn-cbor](tests/pkg_cn-cbor/test.failed) - [tests/pkg_lora-serialization](tests/pkg_lora-serialization/test.failed) - [tests/pkg_ubasic](tests/pkg_ubasic/test.failed) - [tests/rng](tests/rng/test.failed) - [tests/unittests](tests/unittests/test.failed) ``` |
fjmolinas
approved these changes
Aug 6, 2019
Contributor
fjmolinas
left a comment
There was a problem hiding this comment.
Although I found out there are some failing tests with nucleo-boards. These are unrelated to the PR. ACK
fjmolinas
reviewed
Aug 7, 2019
|
|
||
| #define TIMER_0_ISR isr_tim2 | ||
|
|
||
| #define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0])) |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
While working on some of my STM32 boards addition, I noticed the timer configuration were very often the same, certainly due to copy-paste. Some uses TIM2, some uses TIM5.
This PR is introducing 2 new common STM32 timer configurations: one with TIM2, which is adapted for several families (L0, L1 and L4) and one with TIM5, mostly used by F4 boards.
I tried to adapt all boards with these configuration.
The results is a lot of duplicated code in peripheral configurations being removed.
Testing procedure
Issues/PRs references
None