1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/tests/periph_timer
Marian Buschsieweke 496abf0a4e
tests/periph_timer: also test for spurious IRQs
Previously the test only checked if IRQs fired when expected. This
extends the test to also check that IRQs do not fire when not expected.
2022-11-25 12:33:54 +01:00
..
tests
app.config.test
main.c tests/periph_timer: also test for spurious IRQs 2022-11-25 12:33:54 +01:00
Makefile
README.md

Periph Timer Test

About

This application will test all configured peripheral timers of the target platform. For each timer, it will set each channel with an incrementing timeout: CH0 is set to 5ms, CH1 to 10ms, CH2 to 15ms and so on.

Expected Result

The output should show that every channel fired after an evenly distributed amount of time, i.e. the diff values should be equal (with some jitter...).

Note

This test does however NOT show whether the timeouts and diffs were correct in relation to the expected real-time; use e.g. tests/xtimer_msg for this.