1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

tests: driver_mma8652: vtimer -> xtimer

This commit is contained in:
Kaspar Schleiser 2015-09-03 21:36:13 +02:00
parent 2199aa3d1c
commit cd99ca5c19
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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;