mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/im880b: declare adc_config[] directly in periph_conf.h
This commit is contained in:
parent
04d4b025fc
commit
0c026c84e3
@ -161,17 +161,17 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name ADC configuration
|
||||
* @{
|
||||
*/
|
||||
#define ADC_CONFIG { \
|
||||
{ GPIO_PIN(PORT_A, 0), 0 }, /* P14 */ \
|
||||
{ GPIO_PIN(PORT_A, 1), 1 }, /* P15 */ \
|
||||
{ GPIO_PIN(PORT_A, 3), 3 }, /* P17 */ \
|
||||
/* ADC Temperature channel */ \
|
||||
{ GPIO_UNDEF, 16 }, \
|
||||
/* ADC VREF channel */ \
|
||||
{ GPIO_UNDEF, 17 }, \
|
||||
}
|
||||
static const adc_conf_t adc_config[] = {
|
||||
{ GPIO_PIN(PORT_A, 0), 0 }, /* P14 */
|
||||
{ GPIO_PIN(PORT_A, 1), 1 }, /* P15 */
|
||||
{ GPIO_PIN(PORT_A, 3), 3 }, /* P17 */
|
||||
/* ADC Temperature channel */
|
||||
{ GPIO_UNDEF, 16 },
|
||||
/* ADC VREF channel */
|
||||
{ GPIO_UNDEF, 17 },
|
||||
};
|
||||
|
||||
#define ADC_NUMOF (5)
|
||||
#define ADC_NUMOF ARRAY_SIZE(adc_config)
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
Reference in New Issue
Block a user