drivers/periph_timer: add timer_query_freqs()#16349
Merged
maribu merged 2 commits intoRIOT-OS:masterfrom Dec 5, 2023
Merged
Conversation
Contributor
|
Please squash & rebase |
bcd8d5a to
7c0db04
Compare
7c0db04 to
70a06a2
Compare
maribu
commented
Aug 31, 2021
Member
Author
Done. Thanks for the reminder! |
8dede12 to
2a75413
Compare
This was referenced Dec 5, 2023
kaspar030
approved these changes
Dec 5, 2023
Contributor
kaspar030
left a comment
There was a problem hiding this comment.
ACK.
(please change to plural as discussed - timer_query_freq() -> timer_query_freqs())
2a75413 to
3474c40
Compare
Allow accessing supported timer frequencies with a dedicated API. This API needs to be implemented per platform and is available with the feature periph_timer_query_freqs.
If the feature periph_timer_query_freqs is provided, use the corresponding function to iterate over all supported frequencies to increase test coverage.
3474c40 to
3bc6494
Compare
Member
Author
|
🎉 thx! |
1 task
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
Allow accessing supported timer frequencies with a dedicated API.
This API needs to be implemented per platform and is available with
the feature
periph_timer_query_freqs.Testing procedure
The test in
tests/periph_timerhas been extended to make use of the new API to increase test coverage.Issues/PRs references
Implementations: