Skip to content

drivers/periph_timer: add timer_query_freqs()#16349

Merged
maribu merged 2 commits intoRIOT-OS:masterfrom
maribu:periph_timer_query_freq
Dec 5, 2023
Merged

drivers/periph_timer: add timer_query_freqs()#16349
maribu merged 2 commits intoRIOT-OS:masterfrom
maribu:periph_timer_query_freq

Conversation

@maribu
Copy link
Copy Markdown
Member

@maribu maribu commented Apr 19, 2021

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:

@maribu 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
@MrKevinWeiss MrKevinWeiss added this to the Release 2021.07 milestone Jun 21, 2021
@MrKevinWeiss MrKevinWeiss removed this from the Release 2021.07 milestone Jul 15, 2021
@benpicco
Copy link
Copy Markdown
Contributor

Please squash & rebase

@maribu maribu force-pushed the periph_timer_query_freq branch from bcd8d5a to 7c0db04 Compare August 31, 2021 14:16
@github-actions 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 maribu force-pushed the periph_timer_query_freq branch from 7c0db04 to 70a06a2 Compare August 31, 2021 14:17
@maribu maribu added Area: timers Area: timer subsystems and removed Platform: AVR Platform: This PR/issue effects AVR-based platforms labels Aug 31, 2021
@github-actions 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
@maribu
Copy link
Copy Markdown
Member Author

maribu commented Aug 31, 2021

Please squash & rebase

Done. Thanks for the reminder!

Copy link
Copy Markdown
Contributor

@kaspar030 kaspar030 left a 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 maribu force-pushed the periph_timer_query_freq branch from 2a75413 to 3474c40 Compare December 5, 2023 09:58
@maribu maribu changed the title drivers/periph_timer: add timer_query_freq() drivers/periph_timer: add timer_query_freqs() Dec 5, 2023
@maribu maribu enabled auto-merge December 5, 2023 09:59
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 maribu force-pushed the periph_timer_query_freq branch from 3474c40 to 3bc6494 Compare December 5, 2023 15:07
@maribu 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
@maribu maribu added this pull request to the merge queue Dec 5, 2023
Merged via the queue into RIOT-OS:master with commit 0097692 Dec 5, 2023
@maribu maribu deleted the periph_timer_query_freq branch December 5, 2023 19:52
@maribu
Copy link
Copy Markdown
Member Author

maribu commented Dec 5, 2023

🎉 thx!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants