tests: driver_mpu9150: vtimer -> xtimer

This commit is contained in:
Kaspar Schleiser 2015-09-03 21:25:14 +02:00
parent 1fe205924a
commit c530ca4db5
2 changed files with 3 additions and 5 deletions

View File

@ -11,7 +11,7 @@ ifneq (,$(filter msbiot,$(BOARD)))
endif
USEMODULE += mpu9150
USEMODULE += vtimer
USEMODULE += xtimer
ifneq (,$(TEST_I2C))
CFLAGS += -DTEST_I2C=$(TEST_I2C)

View File

@ -32,7 +32,7 @@
#include <inttypes.h>
#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;