mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/nz32-sc151: declare adc_config[] directly in periph_conf.h
This commit is contained in:
parent
a45a194594
commit
737b8c0ff4
@ -191,17 +191,17 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name ADC configuration
|
||||
* @{
|
||||
*/
|
||||
#define ADC_CONFIG { \
|
||||
{ GPIO_PIN(PORT_C, 0), 10 }, \
|
||||
{ GPIO_PIN(PORT_C, 1), 11 }, \
|
||||
{ GPIO_PIN(PORT_C, 2), 12 }, \
|
||||
/* ADC Temperature channel */ \
|
||||
{ GPIO_UNDEF, 16 }, \
|
||||
/* ADC VREF channel */ \
|
||||
{ GPIO_UNDEF, 17 }, \
|
||||
}
|
||||
static const adc_conf_t adc_config[] = {
|
||||
{ GPIO_PIN(PORT_C, 0), 10 },
|
||||
{ GPIO_PIN(PORT_C, 1), 11 },
|
||||
{ GPIO_PIN(PORT_C, 2), 12 },
|
||||
/* ADC Temperature channel */
|
||||
{ GPIO_UNDEF, 16 },
|
||||
/* ADC VREF channel */
|
||||
{ GPIO_UNDEF, 17 },
|
||||
};
|
||||
|
||||
#define ADC_NUMOF (5)
|
||||
#define ADC_NUMOF ARRAY_SIZE(adc_config)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user