boards/nucleo-f410rb: declare adc_config[] directly in periph_conf.h

This commit is contained in:
hugues 2020-08-25 15:51:56 +02:00
parent 0dc1066d57
commit e2e54db822

View File

@ -140,15 +140,16 @@ static const spi_conf_t spi_config[] = {
* *
* @{ * @{
*/ */
#define ADC_NUMOF (6U) static const adc_conf_t adc_config[] = {
#define ADC_CONFIG { \ {GPIO_PIN(PORT_A, 0), 0, 0},
{GPIO_PIN(PORT_A, 0), 0, 0}, \ {GPIO_PIN(PORT_A, 1), 0, 1},
{GPIO_PIN(PORT_A, 1), 0, 1}, \ {GPIO_PIN(PORT_A, 4), 0, 4},
{GPIO_PIN(PORT_A, 4), 0, 4}, \ {GPIO_PIN(PORT_B, 0), 0, 8},
{GPIO_PIN(PORT_B, 0), 0, 8}, \ {GPIO_PIN(PORT_C, 1), 0, 11},
{GPIO_PIN(PORT_C, 1), 0, 11}, \ {GPIO_PIN(PORT_C, 0), 0, 10},
{GPIO_PIN(PORT_C, 0), 0, 10}, \ };
}
#define ADC_NUMOF ARRAY_SIZE(adc_config)
/** @} */ /** @} */
#ifdef __cplusplus #ifdef __cplusplus