1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/sys/ztimer_overhead
Hugues Larrive 3c465836f2 examples and tests: add atmega8 to relevent Makefile.ci
using dist/tools/insufficient_memory/add_insufficient_memory_board.sh
2023-07-11 21:22:02 +02:00
..
tests tests: move sys related applications to tests/sys/ subdirectory 2023-05-10 12:02:58 +02:00
app.config.test tests: move sys related applications to tests/sys/ subdirectory 2023-05-10 12:02:58 +02:00
main.c tests: move sys related applications to tests/sys/ subdirectory 2023-05-10 12:02:58 +02:00
Makefile tests: move sys related applications to tests/sys/ subdirectory 2023-05-10 12:02:58 +02:00
Makefile.ci examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
README.md tests: move sys related applications to tests/sys/ subdirectory 2023-05-10 12:02:58 +02:00

Introduction

This test application sets up a ztimer_periph at 1MHz, then measures 1024 times how much overhead ztimer adds.

It uses the "ztimer_overhead_set()" function. See it's documentation for more information.

It then sets adjust_set parameter and sleeps 1024 times and measure how much overhead ztimer_sleep adds.

It uses the "ztimer_overhead_sleep()" function. See it's documentation for more information.

At the end of the test adjust_set and adjust_sleep values are printed that can be set for the target BOARD in board.h.

e.g for dwm1001:

ZTIMER_USEC adjust params for dwm1001:
    CONFIG_ZTIMER_USEC_ADJUST_SET    6
    CONFIG_ZTIMER_USEC_ADJUST_SLEEP  21