-
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
drivers/periph_timer: add timer_query_freqs() #16349
Merged
Merged
Conversation
This file contains 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
maribu
added
Type: new feature
The issue requests / The PR implemements a new feature for RIOT
Area: drivers
Area: Device drivers
Area: timers
Area: timer subsystems
labels
Apr 19, 2021
maribu
requested review from
aabadie,
cgundogan,
fjmolinas,
jia200x,
kYc0o,
leandrolanzieri,
MichelRottleuthner,
MrKevinWeiss,
roberthartung and
smlng
as code owners
April 19, 2021 19:48
Please squash & rebase |
maribu
force-pushed
the
periph_timer_query_freq
branch
from
August 31, 2021 14:16
bcd8d5a
to
7c0db04
Compare
github-actions
bot
added
Area: cpu
Area: CPU/MCU ports
Area: Kconfig
Area: Kconfig integration
Area: tests
Area: tests and testing framework
Platform: AVR
Platform: This PR/issue effects AVR-based platforms
and removed
Area: timers
Area: timer subsystems
labels
Aug 31, 2021
maribu
force-pushed
the
periph_timer_query_freq
branch
from
August 31, 2021 14:17
7c0db04
to
70a06a2
Compare
maribu
added
Area: timers
Area: timer subsystems
and removed
Platform: AVR
Platform: This PR/issue effects AVR-based platforms
labels
Aug 31, 2021
maribu
commented
Aug 31, 2021
github-actions
bot
added
Platform: AVR
Platform: This PR/issue effects AVR-based platforms
and removed
Area: timers
Area: timer subsystems
labels
Aug 31, 2021
Done. Thanks for the reminder! |
maribu
force-pushed
the
periph_timer_query_freq
branch
from
December 5, 2023 09:15
8dede12
to
2a75413
Compare
github-actions
bot
removed
Platform: ARM
Platform: This PR/issue effects ARM-based platforms
Platform: AVR
Platform: This PR/issue effects AVR-based platforms
Area: cpu
Area: CPU/MCU ports
labels
Dec 5, 2023
This was referenced Dec 5, 2023
kaspar030
approved these changes
Dec 5, 2023
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.
(please change to plural as discussed - timer_query_freq()
-> timer_query_freqs()
)
maribu
force-pushed
the
periph_timer_query_freq
branch
from
December 5, 2023 09:58
2a75413
to
3474c40
Compare
maribu
changed the title
drivers/periph_timer: add timer_query_freq()
drivers/periph_timer: add timer_query_freqs()
Dec 5, 2023
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.
maribu
force-pushed
the
periph_timer_query_freq
branch
from
December 5, 2023 15:07
3474c40
to
3bc6494
Compare
maribu
added
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
and removed
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
CI: run tests
If set, CI server will run tests on hardware for the labeled PR
labels
Dec 5, 2023
🎉 thx! |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area: build system
Area: Build system
Area: drivers
Area: Device drivers
Area: Kconfig
Area: Kconfig integration
Area: tests
Area: tests and testing framework
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
Type: new feature
The issue requests / The PR implemements a new feature for RIOT
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_timer
has been extended to make use of the new API to increase test coverage.Issues/PRs references
Implementations: