23#ifndef ARDUINO_BOARD_ANALOG_H
24#define ARDUINO_BOARD_ANALOG_H
27#include "arduino_iomap.h"
39#define ARDUINO_ANALOG_PIN_LAST
44#if !defined(ARDUINO_ANALOG_PIN_LAST) && (defined(ARDUINO_A0) || defined(ARDUINO_A1))
45# error "ARDUINO_PIN_LAST undefined despite analog pins available"
50#if defined(ARDUINO_ANALOG_PIN_LAST) && !defined(ARDUINO_A0) && !defined(ARDUINO_A1)
51# error "ARDUINO_PIN_LAST defined but no analog pins available"
54#if defined(ARDUINO_ANALOG_PIN_LAST) || defined(DOXYGEN)
77#elif ARDUINO_ANALOG_PIN_LAST > 0
82#elif ARDUINO_ANALOG_PIN_LAST > 1
87#elif ARDUINO_ANALOG_PIN_LAST > 2
92#elif ARDUINO_ANALOG_PIN_LAST > 3
97#elif ARDUINO_ANALOG_PIN_LAST > 4
102#elif ARDUINO_ANALOG_PIN_LAST > 5
107#elif ARDUINO_ANALOG_PIN_LAST > 6
112#elif ARDUINO_ANALOG_PIN_LAST > 7
117#elif ARDUINO_ANALOG_PIN_LAST > 8
122#elif ARDUINO_ANALOG_PIN_LAST > 9
127#elif ARDUINO_ANALOG_PIN_LAST > 10
132#elif ARDUINO_ANALOG_PIN_LAST > 11
137#elif ARDUINO_ANALOG_PIN_LAST > 12
142#elif ARDUINO_ANALOG_PIN_LAST > 13
147#elif ARDUINO_ANALOG_PIN_LAST > 14
152#elif ARDUINO_ANALOG_PIN_LAST > 15
Low-level ADC peripheral driver interface definitions.
static const adc_t arduino_analog_map[]
Look-up table for the Arduino's analog pins.
#define ADC_UNDEF
Default ADC undefined value.
uint_fast8_t adc_t
Define default ADC type identifier.