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
Marian Buschsieweke
e7ee53e6ed
tests/periph_timer: fix style and use of volatile
...
To synchronize communication via shared memory between ISR context and
thread context it is a common misconception that `volatile` is
sufficient. This is however is not the cause and the cause of many
subtle data race bugs. This fixes the issue.
2022-11-25 12:33:54 +01:00
ea3c59f41a
tests: use coreclk() instead of CLOCK_CORECLOCK
2021-12-15 13:14:19 +01:00
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
Sebastian Meiling
739cb85830
tests: add README.md for periph_timer
...
Moving test description from code to a separate README.md file to reduce
binary size to make the test fit on an arduino-uno.
2018-11-29 16:24:51 +01:00
Bas Stottelaar
fd396045de
test: periph_timer: check if argument is passed.
2017-11-13 17:28:53 +01:00
Hauke Petersen
31f6e35533
tests/periph_timer: adapted to API changes
2016-02-29 14:45:00 +01:00
Joakim Nohlgård
92d1bf7a36
tests/periph_timer: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Hauke Petersen
002985db1d
s test/main: changed num from int to unsigned
2015-09-17 13:57:59 +02:00
Hauke Petersen
8739a2a319
s test: fixed copyright and reformatted license
2015-09-17 13:57:59 +02:00
Hauke Petersen
7f74c41c40
tests: added test for periph timer
2015-09-17 13:57:58 +02:00