aboutsummaryrefslogtreecommitdiffstats
path: root/src/avr
diff options
context:
space:
mode:
Diffstat (limited to 'src/avr')
-rw-r--r--src/avr/adc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/avr/adc.c b/src/avr/adc.c
index 8b478d08..111c006d 100644
--- a/src/avr/adc.c
+++ b/src/avr/adc.c
@@ -33,6 +33,11 @@ static const uint8_t adc_pins[] PROGMEM = {
#endif
};
+// The atmega168/328 have two analog only pins
+#if CONFIG_MACH_atmega168 || CONFIG_MACH_atmega328 || CONFIG_MACH_atmega328p
+DECL_ENUMERATION_RANGE("pin", "PE0", GPIO('E', 0), 2);
+#endif
+
enum { ADMUX_DEFAULT = 0x40 };
enum { ADC_ENABLE = (1<<ADPS0)|(1<<ADPS1)|(1<<ADPS2)|(1<<ADEN)|(1<<ADIF) };