From cf3c7cd99afccdb20b7b015a3e8b80555d4986ad Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 24 Sep 2019 09:52:28 -0400 Subject: avr: Rename the analog-only PE0/PE1 pins on atmega168/328 to PE2/PE3 The atmega328pb has officially named these pins as PE2 and PE3, so use that naming scheme instead of the previous Klipper invented names. Signed-off-by: Kevin O'Connor --- src/avr/adc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/avr/adc.c') diff --git a/src/avr/adc.c b/src/avr/adc.c index 111c006d..25b979e0 100644 --- a/src/avr/adc.c +++ b/src/avr/adc.c @@ -14,7 +14,7 @@ static const uint8_t adc_pins[] PROGMEM = { #if CONFIG_MACH_atmega168 || CONFIG_MACH_atmega328 || CONFIG_MACH_atmega328p GPIO('C', 0), GPIO('C', 1), GPIO('C', 2), GPIO('C', 3), - GPIO('C', 4), GPIO('C', 5), GPIO('E', 0), GPIO('E', 1), + GPIO('C', 4), GPIO('C', 5), GPIO('E', 2), GPIO('E', 3), #elif CONFIG_MACH_atmega644p || CONFIG_MACH_atmega1284p GPIO('A', 0), GPIO('A', 1), GPIO('A', 2), GPIO('A', 3), GPIO('A', 4), GPIO('A', 5), GPIO('A', 6), GPIO('A', 7), @@ -35,7 +35,7 @@ static const uint8_t adc_pins[] PROGMEM = { // 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); +DECL_ENUMERATION_RANGE("pin", "PE2", GPIO('E', 2), 2); #endif enum { ADMUX_DEFAULT = 0x40 }; -- cgit v1.2.3-70-g09d2