1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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.
This commit is contained in:
Gunar Schorcht 2020-01-18 13:19:11 +01:00
parent 97a71bc8a6
commit f53534ed44

View File

@ -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)
/** @} */
/**