15#include <AH/Arduino-Wrapper.h>
18#if defined(ADC_RESOLUTION)
19#define HAS_ANALOG_READ_RESOLUTION 1
23#elif defined(TEENSYDUINO) && !defined(DOXYGEN)
26#define ADC_RESOLUTION 10
27#define HAS_ANALOG_READ_RESOLUTION 0
29#elif defined(__MK20DX128__)
30#define ADC_RESOLUTION 13
31#define HAS_ANALOG_READ_RESOLUTION 1
33#elif defined(__MK20DX256__)
34#define ADC_RESOLUTION 13
35#define HAS_ANALOG_READ_RESOLUTION 1
37#elif defined(__MKL26Z64__)
38#define ADC_RESOLUTION 12
39#define HAS_ANALOG_READ_RESOLUTION 1
41#elif defined(__MK64FX512__)
42#define ADC_RESOLUTION 13
43#define HAS_ANALOG_READ_RESOLUTION 1
45#elif defined(__MK66FX1M0__)
46#define ADC_RESOLUTION 13
47#define HAS_ANALOG_READ_RESOLUTION 1
49#elif defined(__IMXRT1062__) || defined(__IMXRT1052__)
50#define ADC_RESOLUTION 12
51#define HAS_ANALOG_READ_RESOLUTION 1
54#warning "Unknown Teensy board, please open an issue on GitHub" \
55 "https://github.com/tttapa/Arduino-Helpers"
62#define ADC_RESOLUTION 12
63#define HAS_ANALOG_READ_RESOLUTION 1
67#elif !defined(ARDUINO)
69#define ADC_RESOLUTION 10
70#define HAS_ANALOG_READ_RESOLUTION 1
76#define ADC_RESOLUTION 10
78#define HAS_ANALOG_READ_RESOLUTION 0
#define AH_DIAGNOSTIC_EXTERNAL_HEADER()
#define AH_DIAGNOSTIC_POP()
#define AH_DIAGNOSTIC_WERROR()