mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #2105 from LudwigOrtmann/hwtimer_wait
tests/hwtimer_wait: test smallest value possible
This commit is contained in:
commit
4a6a4c07c0
@ -30,7 +30,7 @@ int main(void)
|
|||||||
puts("When the race condition is hit, the timer will wait for a very very long time.");
|
puts("When the race condition is hit, the timer will wait for a very very long time.");
|
||||||
|
|
||||||
long iterations = 10000;
|
long iterations = 10000;
|
||||||
long start_duration = 256;
|
long start_duration = (HWTIMER_SPIN_BARRIER + 1) << 5;
|
||||||
long duration = iterations * start_duration * 2L;
|
long duration = iterations * start_duration * 2L;
|
||||||
|
|
||||||
printf("The test should take about %li sec.\n", (HWTIMER_TICKS_TO_US(duration)/1000000));
|
printf("The test should take about %li sec.\n", (HWTIMER_TICKS_TO_US(duration)/1000000));
|
||||||
|
Loading…
Reference in New Issue
Block a user