1
0
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:
Ludwig Ortmann 2014-11-28 16:18:56 +01:00
commit 4a6a4c07c0

View File

@ -30,7 +30,7 @@ int main(void)
puts("When the race condition is hit, the timer will wait for a very very long time.");
long iterations = 10000;
long start_duration = 256;
long start_duration = (HWTIMER_SPIN_BARRIER + 1) << 5;
long duration = iterations * start_duration * 2L;
printf("The test should take about %li sec.\n", (HWTIMER_TICKS_TO_US(duration)/1000000));