From 1f5a96deeafbc6496f2fdd02ba48ce4607c2fb49 Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Tue, 22 Mar 2022 12:49:40 +0100 Subject: [PATCH] boards/arduino-mega2560: add ztimer adjust paramters --- boards/arduino-mega2560/include/board.h | 11 ++++++++++- dist/tools/doccheck/exclude_patterns | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/boards/arduino-mega2560/include/board.h b/boards/arduino-mega2560/include/board.h index a308f8913c..55eb1a1d16 100644 --- a/boards/arduino-mega2560/include/board.h +++ b/boards/arduino-mega2560/include/board.h @@ -19,12 +19,21 @@ #ifndef BOARD_H #define BOARD_H -#include "board_common.h" #ifdef __cplusplus extern "C" { #endif +/** + * @name ztimer configuration values + * @{ + */ +#define CONFIG_ZTIMER_USEC_ADJUST_SET (132) +#define CONFIG_ZTIMER_USEC_ADJUST_SLEEP (120) +/** @} */ + +#include "board_common.h" + #ifdef __cplusplus } #endif diff --git a/dist/tools/doccheck/exclude_patterns b/dist/tools/doccheck/exclude_patterns index a8d3989abe..4ec4e390c6 100644 --- a/dist/tools/doccheck/exclude_patterns +++ b/dist/tools/doccheck/exclude_patterns @@ -14940,3 +14940,5 @@ boards/nucleo\-f439zi/include/periph_conf\.h:[0-9]+: warning: Member SPI_NUMOF \ boards/nucleo\-f439zi/include/periph_conf\.h:[0-9]+: warning: Member spi_config\[\] \(variable\) of file periph_conf\.h is not documented\. boards/nucleo\-f439zi/include/periph_conf\.h:[0-9]+: warning: Member ETH_DMA_ISR \(macro definition\) of file periph_conf\.h is not documented\. boards/nucleo\-f439zi/include/periph_conf\.h:[0-9]+: warning: Member eth_config \(variable\) of file periph_conf\.h is not documented\. +boards/arduino\-mega2560/include/board\.h:[0-9]+: warning: Member CONFIG_ZTIMER_USEC_ADJUST_SET \(macro definition\) of file board\.h is not documented\. +boards/arduino\-mega2560/include/board\.h:[0-9]+: warning: Member CONFIG_ZTIMER_USEC_ADJUST_SLEEP \(macro definition\) of file board\.h is not documented\.