tests: driver_adt7310: vtimer -> xtimer
This commit is contained in:
parent
c530ca4db5
commit
ada00d1ca6
@ -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)
|
||||
|
||||
@ -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…
x
Reference in New Issue
Block a user