diff --git a/sys/include/ztimer/config.h b/sys/include/ztimer/config.h index 2240d7e2ee..04a8447151 100644 --- a/sys/include/ztimer/config.h +++ b/sys/include/ztimer/config.h @@ -136,6 +136,30 @@ extern "C" { # endif #endif +/** + * @brief An offset for ZTIMER_USEC allowing to compensate for the offset + * of @ref ztimer_set(). It can be measured with @ref ztimer_overhead_set() + * + * This value should be configured in the board.h. + * + */ +#ifndef CONFIG_ZTIMER_USEC_ADJUST_SET +#define CONFIG_ZTIMER_USEC_ADJUST_SET 0 +#endif + +/** + * @brief An offset for ZTIMER_USEC allowing to compentsate for the offset + * of @ref ztimer_sleep(). + * + * @note As internally @ref ztimer_sleep() uses @ref ztimer_set() + * @ref CONFIG_ZTIMER_USEC_ADJUST_SET should be tuned before. + * + * This value should be configured in the board.h. + */ +#ifndef CONFIG_ZTIMER_USEC_ADJUST_SLEEP +#define CONFIG_ZTIMER_USEC_ADJUST_SLEEP 0 +#endif + #ifdef __cplusplus } #endif