Skip to content
Snippets Groups Projects
Commit cd99ca5c authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

tests: driver_mma8652: vtimer -> xtimer

parent 2199aa3d
Branches
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ include ../Makefile.tests_common ...@@ -4,7 +4,7 @@ include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c FEATURES_REQUIRED = periph_i2c
USEMODULE += mma8652 USEMODULE += mma8652
USEMODULE += vtimer USEMODULE += xtimer
ifneq (,$(TEST_MMA8652_I2C)) ifneq (,$(TEST_MMA8652_I2C))
CFLAGS += -DTEST_MMA8652_I2C=$(TEST_MMA8652_I2C) CFLAGS += -DTEST_MMA8652_I2C=$(TEST_MMA8652_I2C)
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <stdio.h> #include <stdio.h>
#include "vtimer.h" #include "xtimer.h"
#include "mma8652.h" #include "mma8652.h"
#define SLEEP (1000 * 1000U) #define SLEEP (1000 * 1000U)
...@@ -68,7 +68,7 @@ int main(void) ...@@ -68,7 +68,7 @@ int main(void)
while (1) { while (1) {
mma8652_read(&dev, &x, &y, &z, &status); mma8652_read(&dev, &x, &y, &z, &status);
printf("Acceleration, raw: X: %d Y: %d Z: %d S: %2x\n", 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; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment