From 01d870dbc71f73000fbf3ebe445e765e10c08a82 Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Tue, 15 Jun 2021 16:35:40 +0200 Subject: [PATCH 1/2] boards/atmega256rfr2-xpro add USEC_ADJUST values --- boards/atmega256rfr2-xpro/include/board.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/boards/atmega256rfr2-xpro/include/board.h b/boards/atmega256rfr2-xpro/include/board.h index 7e4edde9fa..22b61528af 100644 --- a/boards/atmega256rfr2-xpro/include/board.h +++ b/boards/atmega256rfr2-xpro/include/board.h @@ -42,6 +42,14 @@ extern "C" { #define XTIMER_BACKOFF (40) /** @} */ +/** + * @name ztimer configuration values + * @{ + */ +#define CONFIG_ZTIMER_USEC_ADJUST_SET (128) +#define CONFIG_ZTIMER_USEC_ADJUST_SLEEP (128) +/** @} */ + /** * @name Macros for controlling the on-board LED * @{ From 3269bcef88fa8e0ff6f750276d9331a180c964e6 Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Tue, 15 Jun 2021 16:35:54 +0200 Subject: [PATCH 2/2] boards/common/arduino-atmega: add USEC_ADJUST values --- boards/common/arduino-atmega/include/board_common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boards/common/arduino-atmega/include/board_common.h b/boards/common/arduino-atmega/include/board_common.h index 458145e893..e20ed8aa51 100644 --- a/boards/common/arduino-atmega/include/board_common.h +++ b/boards/common/arduino-atmega/include/board_common.h @@ -113,6 +113,8 @@ extern "C" { #define CONFIG_ZTIMER_USEC_DEV (TIMER_DEV(0)) #define CONFIG_ZTIMER_USEC_FREQ (250000LU) #define CONFIG_ZTIMER_USEC_WIDTH (16) +#define CONFIG_ZTIMER_USEC_ADJUST_SET (124) +#define CONFIG_ZTIMER_USEC_ADJUST_SLEEP (120) /** @} */ /**