Browse Source

tests: driver_adt7310: vtimer -> xtimer

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

2
tests/driver_adt7310/Makefile

@ -4,7 +4,7 @@ include ../Makefile.tests_common
FEATURES_REQUIRED = periph_spi periph_gpio
USEMODULE += adt7310
USEMODULE += vtimer
USEMODULE += xtimer
ifneq (,$(TEST_ADT7310_SPI))
CFLAGS += -DTEST_ADT7310_SPI=$(TEST_ADT7310_SPI)

6
tests/driver_adt7310/main.c

@ -23,7 +23,7 @@
#include <stdlib.h>
#include "board.h"
#include "vtimer.h"
#include "xtimer.h"
#include "periph/spi.h"
#include "adt7310.h"
@ -126,7 +126,7 @@ int main(void)
{
return 1;
}
vtimer_usleep(SLEEP_CONT);
xtimer_usleep(SLEEP_CONT);
}
puts("Set mode to 1SPS, 13 bit... ");
if (adt7310_set_config(&dev, ADT7310_MODE_1SPS) == 0) {
@ -144,7 +144,7 @@ int main(void)
{
return 1;
}
vtimer_usleep(SLEEP_1SPS);
xtimer_usleep(SLEEP_1SPS);
}
}

Loading…
Cancel
Save