mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-17 18:43:50 +01:00
sys/include/ztimer: document CONFIG_ZTIMER_USEC_ADJUST_%
This commit is contained in:
parent
726c461cb5
commit
2005ba53f5
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user