diff --git a/tests/driver_pir/Makefile b/tests/driver_pir/Makefile index 5a5c38a2c6838996dbd587cb9f04b465b5ef127e..eb332e1d13d5d7c6689025b499b01f445facbff5 100644 --- a/tests/driver_pir/Makefile +++ b/tests/driver_pir/Makefile @@ -12,7 +12,7 @@ ifneq (,$(filter arduino-due,$(BOARD))) endif USEMODULE += pir -USEMODULE += vtimer +USEMODULE += xtimer ifneq (,$(PIR_GPIO)) CFLAGS += -DPIR_GPIO=$(PIR_GPIO) diff --git a/tests/driver_pir/main.c b/tests/driver_pir/main.c index d7f7bba652652b8838e8e1503ce3d928178a94b1..98dbfa2cb3b612f9560f93d04bc04a2535144ae7 100644 --- a/tests/driver_pir/main.c +++ b/tests/driver_pir/main.c @@ -25,7 +25,7 @@ #include <stdio.h> #include "thread.h" -#include "vtimer.h" +#include "xtimer.h" #include "pir.h" char pir_handler_stack[THREAD_STACKSIZE_MAIN]; @@ -75,7 +75,7 @@ int main(void) puts("Printing sensor state every second."); while (1) { printf("Status: %s\n", pir_get_status(&dev) == PIR_STATUS_LO ? "lo" : "hi"); - vtimer_usleep(1000 * 1000); + xtimer_usleep(1000 * 1000); } #else thread_create(