aboutsummaryrefslogtreecommitdiff
path: root/bootloaders/atmega168/Makefile
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2008-11-09 21:02:20 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2008-11-09 21:02:20 +0000
commitbcbd3a6ef4980682c5b6d83947098bc53b2c855d (patch)
treeb318f659536380705d4f2fa9b6e5e34298be82cd /bootloaders/atmega168/Makefile
parentcf3ce01dad6991d0882a867dea44aa6cabf6db38 (diff)
Adding ATmega328 support.
Diffstat (limited to 'bootloaders/atmega168/Makefile')
-rwxr-xr-xbootloaders/atmega168/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/bootloaders/atmega168/Makefile b/bootloaders/atmega168/Makefile
index 182ccae..884a70c 100755
--- a/bootloaders/atmega168/Makefile
+++ b/bootloaders/atmega168/Makefile
@@ -115,6 +115,13 @@ ng: AVR_FREQ = 16000000L
ng: HFUSE = DD
ng: LFUSE = FF
+atmega328: TARGET = atmega328
+atmega328: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1'
+atmega328: $(PROGRAM)_atmega328.hex
+atmega328: AVR_FREQ = 16000000L
+atmega328: MCU_TARGET = atmega328p
+atmega328: LDSECTION = --section-start=.text=0x7800
+
isp: $(PROGRAM)_$(TARGET).hex
$(ISPFUSES)
$(ISPFLASH)