aboutsummaryrefslogtreecommitdiff
path: root/bootloaders/atmega/Makefile
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2009-03-25 10:50:00 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2009-03-25 10:50:00 +0000
commita42326aba2fd9696a4b2e1239a5a222014056ff5 (patch)
tree69288e62749704d81d7ab11079e5868022bdc174 /bootloaders/atmega/Makefile
parentb89ee8da481d7b9c360b689f367b7a234ec7cb11 (diff)
Adding support for the Arduino Mega (ATmega1280) to the core and bootloader.
Diffstat (limited to 'bootloaders/atmega/Makefile')
-rwxr-xr-xbootloaders/atmega/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/bootloaders/atmega/Makefile b/bootloaders/atmega/Makefile
index 861cedd..6c6c215 100755
--- a/bootloaders/atmega/Makefile
+++ b/bootloaders/atmega/Makefile
@@ -166,6 +166,21 @@ atmega328_isp: LFUSE = FF
atmega328_isp: EFUSE = 05
atmega328_isp: isp
+mega: TARGET = atmega1280
+mega: MCU_TARGET = atmega1280
+mega: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=0' -DBAUD_RATE=57600
+mega: AVR_FREQ = 16000000L
+mega: LDSECTION = --section-start=.text=0x1F000
+mega: $(PROGRAM)_atmega1280.hex
+
+mega_isp: mega
+mega_isp: TARGET = atmega1280
+mega_isp: MCU_TARGET = atmega1280
+mega_isp: HFUSE = DA
+mega_isp: LFUSE = FF
+mega_isp: EFUSE = F5
+mega_isp: isp
+
isp: $(TARGET)
$(ISPFUSES)
$(ISPFLASH)