From eafba65911d3d51ccc992752009d0cd15a80daaf Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Fri, 13 Dec 2019 15:23:26 +0100 Subject: [PATCH] boards/common/arduino-atmega: add ztimer configuration --- boards/common/arduino-atmega/include/board_common.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/boards/common/arduino-atmega/include/board_common.h b/boards/common/arduino-atmega/include/board_common.h index b9b2c87f00..458145e893 100644 --- a/boards/common/arduino-atmega/include/board_common.h +++ b/boards/common/arduino-atmega/include/board_common.h @@ -105,6 +105,16 @@ extern "C" { #define XTIMER_BACKOFF (40) /** @} */ +/** + * @name ztimer configuration values + * @{ + */ +#define CONFIG_ZTIMER_USEC_TYPE ZTIMER_TYPE_PERIPH_TIMER +#define CONFIG_ZTIMER_USEC_DEV (TIMER_DEV(0)) +#define CONFIG_ZTIMER_USEC_FREQ (250000LU) +#define CONFIG_ZTIMER_USEC_WIDTH (16) +/** @} */ + /** * @name Configuration parameters for the W5100 driver * @{