1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/xtimer_msg_receive_timeout
Marian Buschsieweke eb1279005c
tests: Cleanup access to internal variables
Replace direct accesses to sched_active_thread and sched_active_pid with
the helper functions thread_getpid() and thread_get_active(). This serves
two purposes:

1. It makes accidental writes to those variable from outside core less likely.
2. Casting off the volatile qualifier is now well contained to those two
   functions
2020-08-24 09:08:01 +02:00
..
tests
main.c
Makefile
README.md

test application for xtimer_msg_receive_timeout()

This test will sequentially start TEST_COUNT xtimers to send a IPC msg, alternating with an interval of TEST_PERIOD +/- 10%. Every time a timer was set, it will wait for a message for at most TEST_PERIOD microseconds. This should succeed with a message or fail with timeout in an alternating manner.

Default values are TEST_COUNT = 10, and TEST_PERIOD = 100ms = 100000us.