1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 04:52:59 +01:00

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

This commit is contained in:
hugues 2020-08-25 15:38:47 +02:00
parent 58fbd8b443
commit f4d5c6bf67

View File

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