boards/stm32f0discovery: declare adc_config[] directly in periph_conf.h

This commit is contained in:
hugues 2020-08-25 16:12:10 +02:00
parent 80990e7c96
commit 477e910066

View File

@ -112,16 +112,16 @@ static const uart_conf_t uart_config[] = {
* [ pin, channel ] * [ pin, channel ]
* @{ * @{
*/ */
#define ADC_CONFIG { \ static const adc_conf_t adc_config[] = {
{ GPIO_PIN(PORT_C, 0), 10 },\ { GPIO_PIN(PORT_C, 0), 10 },
{ GPIO_PIN(PORT_C, 1), 11 },\ { GPIO_PIN(PORT_C, 1), 11 },
{ GPIO_PIN(PORT_C, 2), 12 },\ { GPIO_PIN(PORT_C, 2), 12 },
{ GPIO_PIN(PORT_C, 3), 13 },\ { GPIO_PIN(PORT_C, 3), 13 },
{ GPIO_PIN(PORT_C, 4), 14 },\ { GPIO_PIN(PORT_C, 4), 14 },
{ GPIO_PIN(PORT_C, 5), 15 } \ { GPIO_PIN(PORT_C, 5), 15 }
} };
#define ADC_NUMOF (6) #define ADC_NUMOF ARRAY_SIZE(adc_config)
/** @} */ /** @} */
/** /**