From 28ec1c5d2e01927548972e543e35f7825fcf0c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikolai=20G=C3=BCtschow?= Date: Mon, 18 Nov 2024 17:28:48 +0100 Subject: [PATCH] tests/sys/ztimer_overhead: mention auto_adjust in README and fix typos --- tests/sys/ztimer_overhead/README.md | 4 ++++ tests/sys/ztimer_overhead/main.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/sys/ztimer_overhead/README.md b/tests/sys/ztimer_overhead/README.md index 0bf1ebc09c..ec416032ad 100644 --- a/tests/sys/ztimer_overhead/README.md +++ b/tests/sys/ztimer_overhead/README.md @@ -22,3 +22,7 @@ ZTIMER_USEC adjust params for dwm1001: CONFIG_ZTIMER_USEC_ADJUST_SET 6 CONFIG_ZTIMER_USEC_ADJUST_SLEEP 21 ``` + +This test application also makes use of the `ztimer_auto_adjust` pseudomodule +and thereby allows for comparison of the offset values calculated during +auto-initialization and later during this test. diff --git a/tests/sys/ztimer_overhead/main.c b/tests/sys/ztimer_overhead/main.c index 70bce271df..bb43725aa3 100644 --- a/tests/sys/ztimer_overhead/main.c +++ b/tests/sys/ztimer_overhead/main.c @@ -67,9 +67,9 @@ int main(void) ZTIMER_USEC->adjust_sleep = 0; printf("ZTIMER_USEC auto_adjust params cleared\n"); - printf("zitmer_overhead_set...\n"); + printf("ztimer_overhead_set...\n"); ZTIMER_USEC->adjust_set = _ztimer_usec_overhead(SAMPLES, BASE, ztimer_overhead_set); - printf("zitmer_overhead_sleep...\n"); + printf("ztimer_overhead_sleep...\n"); ZTIMER_USEC->adjust_sleep = _ztimer_usec_overhead(SAMPLES, BASE, ztimer_overhead_sleep); printf("ZTIMER_USEC adjust params for %s:\n", RIOT_BOARD); printf(" CONFIG_ZTIMER_USEC_ADJUST_SET %" PRIi16 "\n", ZTIMER_USEC->adjust_set);