diff --git a/tests/driver_ina220/Makefile b/tests/driver_ina220/Makefile index 5dd0e638415803ab693eec5422dc830a5b6183fa..debe98e59d18e4022778f9d3323532c178e6dd8a 100644 --- a/tests/driver_ina220/Makefile +++ b/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) diff --git a/tests/driver_ina220/main.c b/tests/driver_ina220/main.c index b6c2885f128ec7a22578a007f83d4c6a45d433a4..cb578f305a2675ba43495a755c2cdf49fb35931f 100644 --- a/tests/driver_ina220/main.c +++ b/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;