diff options
author | Zach Eveland <zeveland@blacklabel-development.com> | 2012-04-09 08:03:56 -0400 |
---|---|---|
committer | Zach Eveland <zeveland@blacklabel-development.com> | 2012-04-09 08:03:56 -0400 |
commit | afedb5a92bac5c7f62a02ba085b4fff2b4f2070a (patch) | |
tree | ea3a3b6952ca2aaf602eee096a590be5746b491c /bootloaders/caterina/Makefile | |
parent | ee611dc194fad72d2db9a901208577857365778f (diff) |
PID and VID are no longer hard-coded in bootloader. instead they are passed in at compile-time from makefile. also added and renamed built bootloader images for Micro and Leonardo
Diffstat (limited to 'bootloaders/caterina/Makefile')
-rwxr-xr-x | bootloaders/caterina/Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bootloaders/caterina/Makefile b/bootloaders/caterina/Makefile index ef583bc..3ec7b14 100755 --- a/bootloaders/caterina/Makefile +++ b/bootloaders/caterina/Makefile @@ -46,6 +46,17 @@ # To rebuild project do "make clean" then "make all".
#----------------------------------------------------------------------------
+# USB vendor ID (VID)
+# official Arduino LLC VID
+VID = 0x2341
+
+
+# USB product ID (PID)
+# official Leonardo PID
+#PID = 0x0034
+# official Micro PID
+PID = 0x0035
+
# MCU name
MCU = atmega32u4
@@ -193,6 +204,8 @@ CDEFS = -DF_CPU=$(F_CPU)UL CDEFS += -DF_USB=$(F_USB)UL
CDEFS += -DBOARD=BOARD_$(BOARD) -DARCH=ARCH_$(ARCH)
CDEFS += -DBOOT_START_ADDR=$(BOOT_START)UL
+CDEFS += -DDEVICE_VID=$(VID)UL
+CDEFS += -DDEVICE_PID=$(PID)UL
CDEFS += $(LUFA_OPTS)
|