Browse Source

tests: driver_l3g4200d: vtimer -> xtimer

dev/timer
Kaspar Schleiser 7 years ago
parent
commit
122b238587
  1. 2
      tests/driver_l3g4200d/Makefile
  2. 4
      tests/driver_l3g4200d/main.c

2
tests/driver_l3g4200d/Makefile

@ -4,7 +4,7 @@ include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c periph_gpio
USEMODULE += l3g4200d
USEMODULE += vtimer
USEMODULE += xtimer
ifneq (,$(TEST_L3G4200D_I2C))
CFLAGS += -DTEST_L3G4200D_I2C=$(TEST_L3G4200D_I2C)

4
tests/driver_l3g4200d/main.c

@ -33,7 +33,7 @@
#include <stdio.h>
#include "vtimer.h"
#include "xtimer.h"
#include "l3g4200d.h"
#define MODE L3G4200D_MODE_100_25
@ -62,7 +62,7 @@ int main(void)
printf("Gyro data [dps] - X: %6i Y: %6i Z: %6i\n",
acc_data.acc_x, acc_data.acc_y, acc_data.acc_z);
vtimer_usleep(SLEEP);
xtimer_usleep(SLEEP);
}
return 0;

Loading…
Cancel
Save