diff --git a/tests/driver_mpu9150/Makefile b/tests/driver_mpu9150/Makefile index 477bf4fa0..956c50015 100644 --- a/tests/driver_mpu9150/Makefile +++ b/tests/driver_mpu9150/Makefile @@ -11,7 +11,7 @@ ifneq (,$(filter msbiot,$(BOARD))) endif USEMODULE += mpu9150 -USEMODULE += vtimer +USEMODULE += xtimer ifneq (,$(TEST_I2C)) CFLAGS += -DTEST_I2C=$(TEST_I2C) diff --git a/tests/driver_mpu9150/main.c b/tests/driver_mpu9150/main.c index 43b1fc36e..d306ec04d 100644 --- a/tests/driver_mpu9150/main.c +++ b/tests/driver_mpu9150/main.c @@ -32,7 +32,7 @@ #include #include "mpu9150.h" -#include "vtimer.h" +#include "xtimer.h" #include "board.h" #define SLEEP (1000 * 1000u) @@ -46,8 +46,6 @@ int main(void) puts("MPU-9150 test application\n"); - vtimer_init(); - printf("+------------Initializing------------+\n"); result = mpu9150_init(&dev, TEST_I2C, TEST_HW_ADDR, TEST_COMP_ADDR); @@ -100,7 +98,7 @@ int main(void) printf("Temperature [milli deg] : %ld\n", temperature); printf("\n+-------------------------------------+\n"); - vtimer_usleep(SLEEP); + xtimer_usleep(SLEEP); } return 0;