aboutsummaryrefslogtreecommitdiff
path: root/bootloaders/optiboot
diff options
context:
space:
mode:
authorMartyn Ranyard <ranyardm@gmail.com>2012-11-02 21:45:58 +0000
committerCristian Maglie <c.maglie@arduino.cc>2015-07-14 12:55:22 +0200
commitd76d58a12e6982c54ca8a1d51b96fb9f864fc569 (patch)
treef389796f3a514ac7d876059885d17ce4a9006800 /bootloaders/optiboot
parent10da8ab42f635b96bb848574e446bf32a9e4165b (diff)
Bootloaders: adds support for 328-nonp chips
Diffstat (limited to 'bootloaders/optiboot')
-rw-r--r--bootloaders/optiboot/optiboot.c2
-rw-r--r--bootloaders/optiboot/pin_defs.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/bootloaders/optiboot/optiboot.c b/bootloaders/optiboot/optiboot.c
index 41545b7..bd3a1db 100644
--- a/bootloaders/optiboot/optiboot.c
+++ b/bootloaders/optiboot/optiboot.c
@@ -231,7 +231,7 @@ void appStart() __attribute__ ((naked));
#if defined(__AVR_ATmega168__)
#define RAMSTART (0x100)
#define NRWWSTART (0x3800)
-#elif defined(__AVR_ATmega328P__)
+#elif defined(__AVR_ATmega328P__) || defined(__AVR_ATmega328__)
#define RAMSTART (0x100)
#define NRWWSTART (0x7000)
#elif defined (__AVR_ATmega644P__)
diff --git a/bootloaders/optiboot/pin_defs.h b/bootloaders/optiboot/pin_defs.h
index 27d7772..61ce64e 100644
--- a/bootloaders/optiboot/pin_defs.h
+++ b/bootloaders/optiboot/pin_defs.h
@@ -1,4 +1,4 @@
-#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) || defined(__AVR_ATmega88) || defined(__AVR_ATmega8__) || defined(__AVR_ATmega88__)
+#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) || defined(__AVR_ATmega328__) || defined(__AVR_ATmega88) || defined(__AVR_ATmega8__) || defined(__AVR_ATmega88__)
/* Onboard LED is connected to pin PB5 in Arduino NG, Diecimila, and Duemilanove */
#define LED_DDR DDRB
#define LED_PORT PORTB