Browse Source

tests: driver_ina220: vtimer -> xtimer

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

2
tests/driver_ina220/Makefile

@ -4,7 +4,7 @@ include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += ina220
USEMODULE += vtimer
USEMODULE += xtimer
ifneq (,$(TEST_INA220_I2C))
CFLAGS += -DTEST_INA220_I2C=$(TEST_INA220_I2C)

4
tests/driver_ina220/main.c

@ -27,7 +27,7 @@
#include <stdio.h>
#include "vtimer.h"
#include "xtimer.h"
#include "ina220.h"
/* Use the following configuration:
@ -99,7 +99,7 @@ int main(void)
ina220_read_power(&dev, &val);
printf("\tpower: %6d\n", val);
vtimer_usleep(SLEEP);
xtimer_usleep(SLEEP);
}
return 0;

Loading…
Cancel
Save