Browse Source

tests: driver_isl29020: vtimer -> xtimer

dev/timer
Kaspar Schleiser 8 years ago
parent
commit
e4a239b78a
  1. 2
      tests/driver_isl29020/Makefile
  2. 4
      tests/driver_isl29020/main.c

2
tests/driver_isl29020/Makefile

@ -10,7 +10,7 @@ ifneq (,$(filter iotlab-m3,$(BOARD)))
endif
USEMODULE += isl29020
USEMODULE += vtimer
USEMODULE += xtimer
ifneq (,$(TEST_ISL29020_I2C))
CFLAGS += -DTEST_ISL29020_I2C=$(TEST_ISL29020_I2C)

4
tests/driver_isl29020/main.c

@ -27,7 +27,7 @@
#include <stdio.h>
#include "vtimer.h"
#include "xtimer.h"
#include "isl29020.h"
#define MODE ISL29020_MODE_AMBIENT
@ -52,7 +52,7 @@ int main(void)
while (1) {
value = isl29020_read(&dev);
printf("Light value: %5i LUX\n", value);
vtimer_usleep(SLEEP);
xtimer_usleep(SLEEP);
}
return 0;

Loading…
Cancel
Save