From 1a6f8df3cccadab747bc7eb8c96dcba6e11363d0 Mon Sep 17 00:00:00 2001 From: hugues Date: Tue, 25 Aug 2020 16:21:01 +0200 Subject: [PATCH] boards/yunjia-nrf51822: declare adc_config[] directly in periph_conf.h --- boards/yunjia-nrf51822/include/periph_conf.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/boards/yunjia-nrf51822/include/periph_conf.h b/boards/yunjia-nrf51822/include/periph_conf.h index affd910217..42fbe0650e 100644 --- a/boards/yunjia-nrf51822/include/periph_conf.h +++ b/boards/yunjia-nrf51822/include/periph_conf.h @@ -83,8 +83,9 @@ static const i2c_conf_t i2c_config[] = { * The configuration consists simply of a list of channels that should be used * @{ */ -#define ADC_CONFIG {4, 5, 6, 7} -#define ADC_NUMOF (4) +static const adc_conf_t adc_config[] = {4, 5, 6, 7}; + +#define ADC_NUMOF ARRAY_SIZE(adc_config) /** @} */ #ifdef __cplusplus