From b618db24643178f8a03ca753564ce1951ec09f55 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Tue, 30 May 2023 16:42:01 +0200 Subject: [PATCH] tests/sys/fido2_ctap: Replace ztimer with ztimer_sec --- tests/sys/fido2_ctap/Makefile | 1 + tests/sys/fido2_ctap/app.config.test | 2 ++ tests/sys/fido2_ctap/main.c | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/sys/fido2_ctap/Makefile b/tests/sys/fido2_ctap/Makefile index d83c0476c0..31999264d5 100644 --- a/tests/sys/fido2_ctap/Makefile +++ b/tests/sys/fido2_ctap/Makefile @@ -5,6 +5,7 @@ include ../Makefile.sys_common USEMODULE += fido2_ctap_transport_hid USEMODULE += usbus +USEMODULE += ztimer_sec USEPKG += fido2_tests USB_VID ?= $(USB_VID_TESTING) diff --git a/tests/sys/fido2_ctap/app.config.test b/tests/sys/fido2_ctap/app.config.test index df5e7e4f8d..d18fe2d726 100644 --- a/tests/sys/fido2_ctap/app.config.test +++ b/tests/sys/fido2_ctap/app.config.test @@ -4,5 +4,7 @@ CONFIG_MODULE_FIDO2=y CONFIG_MODULE_FIDO2_CTAP=y CONFIG_MODULE_FIDO2_CTAP_TRANSPORT=y CONFIG_MODULE_FIDO2_CTAP_TRANSPORT_HID=y +CONFIG_MODULE_ZTIMER=y +CONFIG_MODULE_ZTIMER_SEC=y CONFIG_PACKAGE_FIDO2_TESTS=y diff --git a/tests/sys/fido2_ctap/main.c b/tests/sys/fido2_ctap/main.c index bda766ca1e..6fbf5cd4e7 100644 --- a/tests/sys/fido2_ctap/main.c +++ b/tests/sys/fido2_ctap/main.c @@ -23,7 +23,7 @@ #define ENABLE_DEBUG 0 #include "debug.h" -#include "xtimer.h" +#include "ztimer.h" #include "fido2/ctap.h" #include "fido2/ctap/transport/ctap_transport.h" @@ -31,6 +31,6 @@ int main(void) { /* sleep in order to see early DEBUG outputs */ - xtimer_sleep(3); + ztimer_sleep(ZTIMER_SEC, 3); fido2_ctap_transport_init(); }