Browse Source

tests: driver_lps331ap: vtimer -> xtimer

dev/timer
Kaspar Schleiser 7 years ago
parent
commit
205aed03b0
  1. 2
      tests/driver_lps331ap/Makefile
  2. 4
      tests/driver_lps331ap/main.c

2
tests/driver_lps331ap/Makefile

@ -4,7 +4,7 @@ include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += lps331ap
USEMODULE += vtimer
USEMODULE += xtimer
ifneq (,$(TEST_LPS331AP_I2C))
CFLAGS += -DTEST_LPS331AP_I2C=$(TEST_LPS331AP_I2C)

4
tests/driver_lps331ap/main.c

@ -27,7 +27,7 @@
#include <stdio.h>
#include "vtimer.h"
#include "xtimer.h"
#include "lps331ap.h"
#define RATE LPS331AP_RATE_7HZ
@ -61,7 +61,7 @@ int main(void)
printf("Pressure value: %2i.%03i bar - Temperature: %2i.%03i °C\n",
pres_abs, pres, temp_abs, temp);
vtimer_usleep(SLEEP);
xtimer_usleep(SLEEP);
}
return 0;

Loading…
Cancel
Save