diff --git a/tests/driver_mma8652/Makefile b/tests/driver_mma8652/Makefile index 429d6808afc65b11a23614a024cea24f73dc0032..7f5b8bd2f4f8e5573713817d6e32244bc4f8b357 100644 --- a/tests/driver_mma8652/Makefile +++ b/tests/driver_mma8652/Makefile @@ -4,7 +4,7 @@ include ../Makefile.tests_common FEATURES_REQUIRED = periph_i2c USEMODULE += mma8652 -USEMODULE += vtimer +USEMODULE += xtimer ifneq (,$(TEST_MMA8652_I2C)) CFLAGS += -DTEST_MMA8652_I2C=$(TEST_MMA8652_I2C) diff --git a/tests/driver_mma8652/main.c b/tests/driver_mma8652/main.c index c7c7544be4e23a4e902f434b032aec9f53c912cd..db0d954a6025db2eeb286c43e05a3fd5162e17ae 100644 --- a/tests/driver_mma8652/main.c +++ b/tests/driver_mma8652/main.c @@ -29,7 +29,7 @@ #include <stdio.h> -#include "vtimer.h" +#include "xtimer.h" #include "mma8652.h" #define SLEEP (1000 * 1000U) @@ -68,7 +68,7 @@ int main(void) while (1) { mma8652_read(&dev, &x, &y, &z, &status); printf("Acceleration, raw: X: %d Y: %d Z: %d S: %2x\n", x, y, z, status); - vtimer_usleep(SLEEP); + xtimer_usleep(SLEEP); } return 0;