diff --git a/boards/weact-f411ce/include/periph_conf.h b/boards/weact-f411ce/include/periph_conf.h index 698e5e956c..45a4cb4f0e 100644 --- a/boards/weact-f411ce/include/periph_conf.h +++ b/boards/weact-f411ce/include/periph_conf.h @@ -162,15 +162,14 @@ static const spi_conf_t spi_config[] = { * * @{ */ +static const adc_conf_t adc_config[] = { + {GPIO_PIN(PORT_A, 0), 0, 0}, + {GPIO_PIN(PORT_A, 1), 0, 1}, + {GPIO_PIN(PORT_A, 4), 0, 4}, + {GPIO_PIN(PORT_B, 0), 0, 8}, +}; -#define ADC_CONFIG { \ - {GPIO_PIN(PORT_A, 0), 0, 0}, \ - {GPIO_PIN(PORT_A, 1), 0, 1}, \ - {GPIO_PIN(PORT_A, 4), 0, 4}, \ - {GPIO_PIN(PORT_B, 0), 0, 8}, \ -} - -#define ADC_NUMOF (4) +#define ADC_NUMOF ARRAY_SIZE(adc_config) /** @} */ #ifdef __cplusplus