From cb5b07ae94819042153bed316bc57c97db0c6641 Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Thu, 8 Sep 2011 09:47:17 -0400 Subject: changed PIDs for Leonardo and Micro. PIDs are now defined in the Makefile --- bootloaders/diskloader/src/Platform.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bootloaders/diskloader/src') 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) -- cgit v1.2.3-18-g5258