summaryrefslogtreecommitdiff
path: root/Tonokip_Firmware/Makefile
diff options
context:
space:
mode:
authorChristopher Jansen <scribblej@yahoo.com>2011-05-03 02:08:29 -0500
committerChristopher Jansen <scribblej@yahoo.com>2011-05-03 02:08:29 -0500
commitf2302754330ff4184b640977610c6ac403579bcc (patch)
tree8cdcb4a9eda983646190f3be47f4c5d8eab224b1 /Tonokip_Firmware/Makefile
parent61b732cca3a678b8e7ed0107a7b2afdc73966014 (diff)
Changed avrdude to use copy included in Arduino and to precisely match Arduino Env usage.
Diffstat (limited to 'Tonokip_Firmware/Makefile')
-rw-r--r--Tonokip_Firmware/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Tonokip_Firmware/Makefile b/Tonokip_Firmware/Makefile
index 7f4f23e..cc4485b 100644
--- a/Tonokip_Firmware/Makefile
+++ b/Tonokip_Firmware/Makefile
@@ -38,6 +38,8 @@ UPLOAD_RATE = 38400
AVRDUDE_PROGRAMMER = stk500v1
PORT = /dev/ttyUSB0
MCU = atmega2560
+#For Sanguinololu
+#MCU = atmega644p
F_CPU = 16000000
@@ -92,8 +94,8 @@ LDFLAGS = -lm
# Programming support using avrdude. Settings and variables.
AVRDUDE_PORT = $(PORT)
-AVRDUDE_WRITE_FLASH = -U flash:w:applet/$(TARGET).hex
-AVRDUDE_FLAGS = -V -F -C $(INSTALL_DIR)/hardware/tools/avrdude.conf \
+AVRDUDE_WRITE_FLASH = -U flash:w:applet/$(TARGET).hex:i
+AVRDUDE_FLAGS = -D -C $(INSTALL_DIR)/hardware/tools/avrdude.conf \
-p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) \
-b $(UPLOAD_RATE)
@@ -105,7 +107,7 @@ OBJDUMP = $(AVR_TOOLS_PATH)/avr-objdump
AR = $(AVR_TOOLS_PATH)/avr-ar
SIZE = $(AVR_TOOLS_PATH)/avr-size
NM = $(AVR_TOOLS_PATH)/avr-nm
-AVRDUDE = $(AVR_TOOLS_PATH)/avrdude
+AVRDUDE = $(INSTALL_DIR)/hardware/tools/avrdude
REMOVE = rm -f
MV = mv -f