From f53534ed44417657b14f909be68e6133a1595844 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Sat, 18 Jan 2020 13:19:11 +0100 Subject: [PATCH] boards/mega-xplained: fix ADC line defintions For the ATmega platform the ADC lines are not defined according to the GPIOs. Instead, they are defined from 0 to ADC_NUMOF-1, which in turn represents the bit in the corresponding ADC registers. The mapping from the line number to the corresponding ADC register/bit combination is done implicitly by the periph/adc implementation. --- boards/mega-xplained/include/board.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/boards/mega-xplained/include/board.h b/boards/mega-xplained/include/board.h index 2e2176d133..e79f4ef13e 100644 --- a/boards/mega-xplained/include/board.h +++ b/boards/mega-xplained/include/board.h @@ -113,9 +113,9 @@ extern "C" { * @name ADC NTC, light sensor, and filter lines * @{ */ -#define NTC_OUTPUT GPIO_PIN(PORT_A, 5) -#define LIGHT_SENSOR_OUTPUT GPIO_PIN(PORT_A, 6) -#define FILTER_OUTPUT GPIO_PIN(PORT_A, 7) +#define NTC_OUTPUT ADC_LINE(7) +#define LIGHT_SENSOR_OUTPUT ADC_LINE(6) +#define FILTER_OUTPUT ADC_LINE(5) /** @} */ /**