aboutsummaryrefslogtreecommitdiffstats
path: root/Bootloaders/TeensyHID/Descriptors.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-05-06 02:06:12 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-05-06 02:06:12 +0000
commit298592383ad2a98922064a0d183390e896856483 (patch)
treef09ed904cb4954e5c86c1a8c6b45cae519faa55e /Bootloaders/TeensyHID/Descriptors.h
parentfc31973daffea3506051ce51a5f79383ce0867d6 (diff)
downloadlufa-298592383ad2a98922064a0d183390e896856483.tar.gz
lufa-298592383ad2a98922064a0d183390e896856483.tar.bz2
lufa-298592383ad2a98922064a0d183390e896856483.zip
Fixed TeensyHID bootloader so that it works with the official TeensyLoader GUI application with all supported AVR models.
Diffstat (limited to 'Bootloaders/TeensyHID/Descriptors.h')
-rw-r--r--Bootloaders/TeensyHID/Descriptors.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/Bootloaders/TeensyHID/Descriptors.h b/Bootloaders/TeensyHID/Descriptors.h
index 0ea7f3935..37a2b644e 100644
--- a/Bootloaders/TeensyHID/Descriptors.h
+++ b/Bootloaders/TeensyHID/Descriptors.h
@@ -83,6 +83,29 @@
/** Descriptor header type value, to indicate a HID class HID report descriptor. */
#define DTYPE_Report 0x22
+
+ /** Vendor usage page for the Teensy 1.0 board */
+ #define TEENSY_USAGEPAGE_10 0x19
+
+ /** Vendor usage page for the Teensy++ 1.0 board */
+ #define TEENSY_USAGEPAGE_10PP 0x1A
+
+ /** Vendor usage page for the Teensy 2.0 board */
+ #define TEENSY_USAGEPAGE_20 0x1B
+
+ /** Vendor usage page for the Teensy++ 1.0 board */
+ #define TEENSY_USAGEPAGE_20PP 0x1C
+
+ #if defined(USB_SERIES_2_AVR)
+ #define TEENSY_USAGEPAGE TEENSY_USAGEPAGE_10
+ #elif defined(USB_SERIES_4_AVR)
+ #define TEENSY_USAGEPAGE TEENSY_USAGEPAGE_20
+ #define TEENSY_USAGE TEENSY_USAGE_20
+ #elif defined(USB_SERIES_6_AVR)
+ #define TEENSY_USAGEPAGE TEENSY_USAGEPAGE_10PP
+ #elif defined(USB_SERIES_7_AVR)
+ #define TEENSY_USAGEPAGE TEENSY_USAGEPAGE_20PP
+ #endif
/* Function Prototypes: */
uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex, void** const DescriptorAddress)