diff options
author | Zach Eveland <zeveland@blacklabel-development.com> | 2011-09-08 15:52:05 -0400 |
---|---|---|
committer | Zach Eveland <zeveland@blacklabel-development.com> | 2011-09-08 15:52:05 -0400 |
commit | 63ec4aba2221ce5f9d57cfa305e2ad3f253de732 (patch) | |
tree | 0495cfc09adcae052794d9cf67747330722a5d1a /cores | |
parent | d2749dc2258148086f2e91e3f92f9a9ed3eaa5a2 (diff) |
added compile-time definition of sketch PID. PID is pulled from variants/leonardo or the new variants/micro as appropriate.
Diffstat (limited to 'cores')
-rw-r--r-- | cores/arduino/USBDesc.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/cores/arduino/USBDesc.h b/cores/arduino/USBDesc.h index 2ad7725..7d767d1 100644 --- a/cores/arduino/USBDesc.h +++ b/cores/arduino/USBDesc.h @@ -89,19 +89,8 @@ #define FAT_FILE_NAME 'F','I','R','M','W','A','R','E','B','I','N' // 11 chars #define MSC_DISK_SERIAL '0','0','0','0','0','0','0','0','1','7','0','1' // 12 chars -#ifdef MICROTOUCH - -#define USB_VID 0x239A // Adafruit vid -#define USB_PID 0x2001 // sorry dave sprach zarathustra -#define FAT_OEM_NAME 'r','o','s','s','u','m','u','r' // 8 chars -#define PRODUCT_NAME 'M','i','c','r','o','t','o','u','c','h' - -#else - #define USB_VID 0x2341 // arduino LLC vid -#define USB_PID 0x0020 // educated guess +#define USB_PID ARDUINO_MODEL_USB_PID #define FAT_OEM_NAME 'l','e','o','n','a','r','d','o' // 8 chars #define PRODUCT_NAME 'A','r','d','u','i','n','o','l','l','c' // 10 - -#endif
\ No newline at end of file |