Browse Source

tests: driver_tmp006: vtimer -> xtimer

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

2
tests/driver_tmp006/Makefile

@ -4,7 +4,7 @@ include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += tmp006
USEMODULE += vtimer
USEMODULE += xtimer
ifneq (,$(TEST_TMP006_I2C))
CFLAGS += -DTEST_TMP006_I2C=$(TEST_TMP006_I2C)

4
tests/driver_tmp006/main.c

@ -32,7 +32,7 @@
#include <stdio.h>
#include "vtimer.h"
#include "xtimer.h"
#include "tmp006.h"
int main(void)
@ -70,7 +70,7 @@ int main(void)
tmp006_convert(rawvolt, rawtemp, &tamb, &tobj);
printf("Data Tabm: %d Tobj: %d\n", (int)(tamb*100), (int)(tobj*100));
vtimer_usleep(TMP006_CONVERSION_TIME);
xtimer_usleep(TMP006_CONVERSION_TIME);
}
return 0;

Loading…
Cancel
Save