boards/nz32-sc151: declare adc_config[] directly in periph_conf.h

This commit is contained in:
hugues 2020-08-25 12:19:01 +02:00
parent a45a194594
commit 737b8c0ff4

View File

@ -191,17 +191,17 @@ static const i2c_conf_t i2c_config[] = {
* @name ADC configuration * @name ADC configuration
* @{ * @{
*/ */
#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 },
/* ADC Temperature channel */ \ /* ADC Temperature channel */
{ GPIO_UNDEF, 16 }, \ { GPIO_UNDEF, 16 },
/* ADC VREF channel */ \ /* ADC VREF channel */
{ GPIO_UNDEF, 17 }, \ { GPIO_UNDEF, 17 },
} };
#define ADC_NUMOF (5) #define ADC_NUMOF ARRAY_SIZE(adc_config)
/** @} */ /** @} */
/** /**