pins: Fix atmega168/328 mappings

The atmega168 and atmega328 need to define PE0 and PE1 in order to
support the 2 extra analog pins.

Also, support the arduino mappings for the atmega328.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2017-12-09 11:48:26 -05:00
parent f8acf0f54f
commit 4a5801bb2e
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ def beaglebone_pins():
return gpios
MCU_PINS = {
"atmega168": port_pins(4), "atmega328": port_pins(4),
"atmega168": port_pins(5), "atmega328": port_pins(5),
"atmega644p": port_pins(4), "atmega1284p": port_pins(4),
"at90usb1286": port_pins(6),
"atmega1280": port_pins(12), "atmega2560": port_pins(12),
@ -95,6 +95,7 @@ Arduino_Due_analog = [
Arduino_from_mcu = {
"atmega168": (Arduino_standard, Arduino_analog_standard),
"atmega328": (Arduino_standard, Arduino_analog_standard),
"atmega644p": (Sanguino, Sanguino_analog),
"atmega1280": (Arduino_mega, Arduino_analog_mega),
"atmega2560": (Arduino_mega, Arduino_analog_mega),