From 04d4b025fcf555470d26dec071c1e3a3ce6aabc3 Mon Sep 17 00:00:00 2001 From: hugues Date: Tue, 25 Aug 2020 15:28:34 +0200 Subject: [PATCH] boards/airfy-beacon: declare adc_config[] directly in periph_conf.h --- boards/airfy-beacon/include/periph_conf.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/boards/airfy-beacon/include/periph_conf.h b/boards/airfy-beacon/include/periph_conf.h index f10fc2d679..bd35bc4ed9 100644 --- a/boards/airfy-beacon/include/periph_conf.h +++ b/boards/airfy-beacon/include/periph_conf.h @@ -86,8 +86,9 @@ static const i2c_conf_t i2c_config[] = { * The configuration consists simply of a list of channels that should be used * @{ */ -#define ADC_CONFIG {3, 4, 5, 6} -#define ADC_NUMOF (4) +static const adc_conf_t adc_config[] = {3, 4, 5, 6}; + +#define ADC_NUMOF ARRAY_SIZE(adc_config) /** @} */ #ifdef __cplusplus