aboutsummaryrefslogtreecommitdiff
path: root/bootloaders/diskloader/src/Platform.h
diff options
context:
space:
mode:
authorZach Eveland <zeveland@blacklabel-development.com>2011-09-08 09:47:17 -0400
committerZach Eveland <zeveland@blacklabel-development.com>2011-09-08 09:47:17 -0400
commitcb5b07ae94819042153bed316bc57c97db0c6641 (patch)
tree605320a9b041f26770cc4fd033fd907de1979d13 /bootloaders/diskloader/src/Platform.h
parent384f8e80fa55b1a704674a4ee19192328ec90abe (diff)
changed PIDs for Leonardo and Micro. PIDs are now defined in the Makefile
Diffstat (limited to 'bootloaders/diskloader/src/Platform.h')
-rw-r--r--bootloaders/diskloader/src/Platform.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootloaders/diskloader/src/Platform.h b/bootloaders/diskloader/src/Platform.h
index 416d9c3..278b408 100644
--- a/bootloaders/diskloader/src/Platform.h
+++ b/bootloaders/diskloader/src/Platform.h
@@ -19,9 +19,9 @@ typedef unsigned long u32;
#define DISABLE_JTAG() MCUCR = (1 << JTD) | (1 << IVCE) | (0 << PUD); MCUCR = (1 << JTD) | (0 << IVSEL) | (0 << IVCE) | (0 << PUD);
#define USB_VID 0x2341 // arduino LLC vid
-#define USB_PID 0x0020 // educated guess
+#define USB_PID ARDUINO_MODEL_PID // passed in by Makefile - 0x0034 for Leonardo, 0x0035 for MIcro
-#define FAT_OEM_NAME 'l','e','o','n','a','r','d','o' // 8 chars
+#define OEM_NAME 'l','e','o','n','a','r','d','o' // 8 chars
#define BOARD_INIT() DDRC |= (1<<7); DDRB |= (1<<0); DDRE |= (1<<6); CPU_PRESCALE(0); DISABLE_JTAG();
#define LED0 PORTC &= ~(1<<7)
#define LED1 PORTC |= (1<<7)