1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-31 01:11:21 +01:00

cpu/native: remove unused XTIMER_BACKOFF definitions

XTIMER_BACKOFF and XTIMER_ISR_BACKOFF were defined in periph_conf.h
since 2016 for the legacy xtimer module, which required high backoff
values (200) on native to prevent timer underflow issues.

However, since the migration to ztimer, all code now uses
MODULE_ZTIMER_XTIMER_COMPAT which includes ztimer/xtimer_compat.h
before periph_conf.h. This means xtimer_compat.h always defines
XTIMER_BACKOFF=1 first, and the periph_conf.h definitions are never
used.

Remove these unused definitions as they serve no purpose with the
current ztimer-based implementation.

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
This commit is contained in:
Gilles DOFFE 2025-10-18 23:17:21 +02:00
parent 099f32a589
commit aab432ff6d

View File

@ -50,19 +50,6 @@ extern "C" {
#define TIMER_CHANNEL_NUMOF (1U) /**< Number of timer channels */
/** @} */
/* MARK: - xtimer configuration */
/**
* @name `xtimer` configuration
* @{
*
* @ref timer_set_absolute has a high margin for possible underflow if set with
* value not far in the future. To prevent this, we set high backoff values
* here.
*/
#define XTIMER_BACKOFF 200
#define XTIMER_ISR_BACKOFF 200
/** @} */
/**
* @brief UART configuration
*/