1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/xtimer_now_irq
2021-01-20 17:36:14 +01:00
..
tests tests/xtimer_now_irq: don't fail for 32bit timers 2020-07-15 16:29:07 +02:00
app.config.test tests: add common Kconfig configuration for sync 2021-01-20 17:36:14 +01:00
main.c tests/xtimer_now_irq: don't fail for 32bit timers 2020-07-15 16:29:07 +02:00
Makefile tests/xtimer_now_irq/: New test for xtimer_now() with irq_disable() 2020-05-01 15:37:51 +02:00
README.md tests/xtimer_now_irq/: New test for xtimer_now() with irq_disable() 2020-05-01 15:37:51 +02:00

README for xtimer_now_irq test

This test checks, if the timer returns the correct time (xtimer_now_usec() is called), when interrupts are disabled. Specifically tested is if the time is correct after a low-level timer overflow.

When the returned value is incorrect the test will print: "ERROR: wrong time with interrupts disabled".

This test must be run over at least one full timer period. Meaning the test only finishes in reasonable short time on platforms with small timers up to 24 bit. This test does not work for 32 bit timers.