aboutsummaryrefslogtreecommitdiff
path: root/bootloaders/atmega/Makefile
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2009-05-08 11:05:41 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2009-05-08 11:05:41 +0000
commit9858f5294bcbcb4b3aa899553951402df14dd784 (patch)
tree2f0285116b2a557b9dfbfdbed539e1bdf37f7ded /bootloaders/atmega/Makefile
parent3531cb49f43e067779963beb2b7fc4b098ad769f (diff)
Adding ATmega328 bootloader for the Pro and Pro Mini running at 8 MHz (3.3V). Uses the USART0 double speed mode, which according to Nathan from Sparkfun, is necessary to achieve reliable communication at 57600 baud.
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 6c6c215..0fd54db 100755
--- a/bootloaders/atmega/Makefile
+++ b/bootloaders/atmega/Makefile
@@ -166,6 +166,21 @@ atmega328_isp: LFUSE = FF
atmega328_isp: EFUSE = 05
atmega328_isp: isp
+atmega328_pro8: TARGET = atmega328_pro_8MHz
+atmega328_pro8: MCU_TARGET = atmega328p
+atmega328_pro8: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' -DBAUD_RATE=57600 -DDOUBLE_SPEED
+atmega328_pro8: AVR_FREQ = 8000000L
+atmega328_pro8: LDSECTION = --section-start=.text=0x7800
+atmega328_pro8: $(PROGRAM)_atmega328_pro_8MHz.hex
+
+atmega328_pro8_isp: atmega328_pro8
+atmega328_pro8_isp: TARGET = atmega328_pro_8MHz
+atmega328_pro8_isp: MCU_TARGET = atmega328p
+atmega328_pro8_isp: HFUSE = DA
+atmega328_pro8_isp: LFUSE = FF
+atmega328_pro8_isp: EFUSE = 05
+atmega328_pro8_isp: isp
+
mega: TARGET = atmega1280
mega: MCU_TARGET = atmega1280
mega: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=0' -DBAUD_RATE=57600