Browse Source

tests: driver_mpu9150: vtimer -> xtimer

dev/timer
Kaspar Schleiser 8 years ago
parent
commit
c530ca4db5
  1. 2
      tests/driver_mpu9150/Makefile
  2. 6
      tests/driver_mpu9150/main.c

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

6
tests/driver_mpu9150/main.c

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

Loading…
Cancel
Save