periph_timer: Test coverage & broken on STM32F767ZI #15072
Labels
Area: cpu
Area: CPU/MCU ports
Area: tests
Area: tests and testing framework
Platform: ARM
Platform: This PR/issue effects ARM-based platforms
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Type: new feature
The issue requests / The PR implemements a new feature for RIOT
Description
The
periph_timer
supports operating the hardware timer at different frequencies. It is expected that whentimer_init()
for a given frequency doesn't report an error, that the timer works as advertised.Steps to reproduce the issue
Expected results
Either failing timer initialization (which indicates an unsupported frequency was chosen), or fully functioning timer.
Actual results
Versions
Current master
Remarks
I think the fundamential issue here is missing test coverage. IMO the test should iterate over all available combinations of timers and supported frequencies. However, there currently is now way to efficiently query supported frequencies. An API extension for that seems to be reasonable.
With that in place, automatic tests would cause bugs and regressions for timer frequencies different from the one
xtimer
uses.The text was updated successfully, but these errors were encountered: