diff options
author | Zach Eveland <zeveland@blacklabel-development.com> | 2011-09-08 09:47:17 -0400 |
---|---|---|
committer | Zach Eveland <zeveland@blacklabel-development.com> | 2011-09-08 09:47:17 -0400 |
commit | cb5b07ae94819042153bed316bc57c97db0c6641 (patch) | |
tree | 605320a9b041f26770cc4fd033fd907de1979d13 /bootloaders/diskloader/Makefile | |
parent | 384f8e80fa55b1a704674a4ee19192328ec90abe (diff) |
changed PIDs for Leonardo and Micro. PIDs are now defined in the Makefile
Diffstat (limited to 'bootloaders/diskloader/Makefile')
-rw-r--r-- | bootloaders/diskloader/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bootloaders/diskloader/Makefile b/bootloaders/diskloader/Makefile index ca6e11e..6ac3db3 100644 --- a/bootloaders/diskloader/Makefile +++ b/bootloaders/diskloader/Makefile @@ -11,6 +11,12 @@ CC = avr-gcc MCU = atmega32u4 AVR_FREQ = 16000000L +# Specify the Arduino model using the assigned PID. This is used by Descriptors.c
+# to set PID and product descriptor string
+# Arduino Leonardo PID
+ARDUINO_MODEL_PID = 0x0034
+# Arduino Micro PID
+#ARDUINO_MODEL_PID = 0x0035 # Change if your programmer is different AVRDUDE_PROGRAMMER = avrispmkII @@ -25,7 +31,7 @@ AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) -p $(MCU) ## Options common to compile, link and assembly rules COMMON = -mmcu=$(MCU) -override CFLAGS = -g -Wall -Os -mmcu=$(MCU) -DF_CPU=$(AVR_FREQ) $(DEFS) -ffunction-sections -gdwarf-2 -fdata-sections -fno-split-wide-types +override CFLAGS = -g -Wall -Os -mmcu=$(MCU) -DF_CPU=$(AVR_FREQ) -DARDUINO_MODEL_PID=$(ARDUINO_MODEL_PID) $(DEFS) -ffunction-sections -gdwarf-2 -fdata-sections -fno-split-wide-types ## Assembly specific flags ASMFLAGS = $(COMMON) |