Skip to content
Snippets Groups Projects
Commit 8e446af6 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

tests: irq: switch to xtimer

parent 25c0fc0e
Branches
No related tags found
No related merge requests found
...@@ -2,5 +2,6 @@ APPLICATION = irq ...@@ -2,5 +2,6 @@ APPLICATION = irq
include ../Makefile.tests_common include ../Makefile.tests_common
USEMODULE += auto_init USEMODULE += auto_init
USEMODULE += xtimer
include $(RIOTBASE)/Makefile.include include $(RIOTBASE)/Makefile.include
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <stdio.h> #include <stdio.h>
#include "hwtimer.h" #include "xtimer.h"
#include "thread.h" #include "thread.h"
char busy_stack[THREAD_STACKSIZE_MAIN]; char busy_stack[THREAD_STACKSIZE_MAIN];
...@@ -58,8 +58,8 @@ int main(void) ...@@ -58,8 +58,8 @@ int main(void)
busy_thread, NULL, "busy_thread"); busy_thread, NULL, "busy_thread");
puts("busy_thread created"); puts("busy_thread created");
puts("hwtimer_wait()"); puts("xtimer_wait()");
hwtimer_wait(HWTIMER_TICKS(100000)); xtimer_usleep(100000);
busy = 0; busy = 0;
puts("main: return"); puts("main: return");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment