1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/periph_timer
Sebastian Meiling 7913811a0f tests: board specific TIMER_SPEED in periph_timer
By default the periph_timer tests wants to init all timers with 1MHz,
which is not suitable for all timers, e.g. the atmega timers cannot
run at that speed to make the test work they need to be set to 250kHz.
2018-11-29 16:25:06 +01:00
..
tests tests: move testrunner import up 2018-08-13 14:11:24 +02:00
main.c tests: board specific TIMER_SPEED in periph_timer 2018-11-29 16:25:06 +01:00
Makefile tests: board specific TIMER_SPEED in periph_timer 2018-11-29 16:25:06 +01:00
README.md tests: add README.md for periph_timer 2018-11-29 16:24:51 +01:00

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.