diff --git a/tests/irq/Makefile b/tests/irq/Makefile index 5b59ed8de986fbe786b35cb09a2e63c76015d2f5..b0b9a5d532ad33aec1b5d436d234ece4765818ce 100644 --- a/tests/irq/Makefile +++ b/tests/irq/Makefile @@ -2,5 +2,6 @@ APPLICATION = irq include ../Makefile.tests_common USEMODULE += auto_init +USEMODULE += xtimer include $(RIOTBASE)/Makefile.include diff --git a/tests/irq/main.c b/tests/irq/main.c index 9139c1ea56e0180dd5cb9a5d0ae7f18bbc389638..b5b2f2b4e59808144e8d6ae1c455d208bda81812 100644 --- a/tests/irq/main.c +++ b/tests/irq/main.c @@ -20,7 +20,7 @@ #include <stdio.h> -#include "hwtimer.h" +#include "xtimer.h" #include "thread.h" char busy_stack[THREAD_STACKSIZE_MAIN]; @@ -58,8 +58,8 @@ int main(void) busy_thread, NULL, "busy_thread"); puts("busy_thread created"); - puts("hwtimer_wait()"); - hwtimer_wait(HWTIMER_TICKS(100000)); + puts("xtimer_wait()"); + xtimer_usleep(100000); busy = 0; puts("main: return");