Browse Source

tests: driver_mpl3115a2: vtimer -> xtimer

dev/timer
Kaspar Schleiser 8 years ago
parent
commit
941acb180d
  1. 2
      tests/driver_mpl3115a2/Makefile
  2. 4
      tests/driver_mpl3115a2/main.c

2
tests/driver_mpl3115a2/Makefile

@ -4,7 +4,7 @@ include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += mpl3115a2
USEMODULE += vtimer
USEMODULE += xtimer
ifneq (,$(TEST_MPL3115A2_I2C))
CFLAGS += -DTEST_MPL3115A2_I2C=$(TEST_MPL3115A2_I2C)

4
tests/driver_mpl3115a2/main.c

@ -29,7 +29,7 @@
#include <stdio.h>
#include "vtimer.h"
#include "xtimer.h"
#include "mpl3115a2.h"
#define SLEEP (1000 * 1000U)
@ -58,7 +58,7 @@ int main(void)
}
while (1) {
vtimer_usleep(SLEEP);
xtimer_usleep(SLEEP);
mpl3115a2_read_pressure(&dev, &pressure, &status);
printf("Pressure: %u Status: %#02x\n", (unsigned int)pressure, status);
mpl3115a2_read_temp(&dev, &temp);

Loading…
Cancel
Save