diff --git a/drivers/shtc1/Kconfig b/drivers/shtc1/Kconfig index 5f01412553..ada7d211bc 100644 --- a/drivers/shtc1/Kconfig +++ b/drivers/shtc1/Kconfig @@ -11,4 +11,3 @@ config MODULE_SHTC1 depends on TEST_KCONFIG select MODULE_PERIPH_I2C select MODULE_CHECKSUM - select MODULE_XTIMER diff --git a/drivers/shtc1/Makefile.dep b/drivers/shtc1/Makefile.dep index e109ab9d57..46470c82a4 100644 --- a/drivers/shtc1/Makefile.dep +++ b/drivers/shtc1/Makefile.dep @@ -1,3 +1,2 @@ FEATURES_REQUIRED += periph_i2c -USEMODULE += xtimer USEMODULE += checksum diff --git a/tests/driver_shtc1/Makefile b/tests/driver_shtc1/Makefile index 9ece2699c7..51410b37be 100644 --- a/tests/driver_shtc1/Makefile +++ b/tests/driver_shtc1/Makefile @@ -3,6 +3,8 @@ include ../Makefile.tests_common DRIVER ?= shtc1 USEMODULE += fmt +USEMODULE += ztimer +USEMODULE += ztimer_msec USEMODULE += $(DRIVER) include $(RIOTBASE)/Makefile.include diff --git a/tests/driver_shtc1/app.config.test b/tests/driver_shtc1/app.config.test index f44e82bfb1..96c6f5cab8 100644 --- a/tests/driver_shtc1/app.config.test +++ b/tests/driver_shtc1/app.config.test @@ -2,3 +2,5 @@ # application configuration. This is only needed during migration. CONFIG_MODULE_FMT=y CONFIG_MODULE_SHTC1=y +CONFIG_MODULE_ZTIMER=y +CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/driver_shtc1/main.c b/tests/driver_shtc1/main.c index 0c079d7d42..865eaa2724 100644 --- a/tests/driver_shtc1/main.c +++ b/tests/driver_shtc1/main.c @@ -21,10 +21,11 @@ #include #include +#include "timex.h" +#include "ztimer.h" +#include "fmt.h" #include "shtc1.h" #include "shtc1_params.h" -#include "xtimer.h" -#include "fmt.h" int main(void) { @@ -55,7 +56,7 @@ int main(void) printf("Temperature [°C]: %s\n", str_temp); printf(" Humidity [%%rH]: %s\n", str_hum); - xtimer_sleep(2); + ztimer_sleep(ZTIMER_MSEC, 2 * MS_PER_SEC); } return 0; }