From 8e446af6bbf422a90680b2c4900cfe08f1cb2783 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser <kaspar@schleiser.de> Date: Thu, 3 Sep 2015 19:01:09 +0200 Subject: [PATCH] tests: irq: switch to xtimer --- tests/irq/Makefile | 1 + tests/irq/main.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/irq/Makefile b/tests/irq/Makefile index 5b59ed8de9..b0b9a5d532 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 9139c1ea56..b5b2f2b4e5 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"); -- GitLab