diff options
author | tmk <nobody@nowhere> | 2012-06-28 20:15:56 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2012-06-28 20:15:56 +0900 |
commit | 3d81d5221eac9ca9620ba9043a250dcb8371b22e (patch) | |
tree | ae8f467e1691d42e01feaebc968aaade989924f3 /keyboard/lufa/descriptor.h | |
parent | a9a3610dd4a168e473d2d6a2eb3fbc37aabb46c9 (diff) |
Add consumer/system control feature to LUFA.
Diffstat (limited to 'keyboard/lufa/descriptor.h')
-rw-r--r-- | keyboard/lufa/descriptor.h | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/keyboard/lufa/descriptor.h b/keyboard/lufa/descriptor.h index d45e905c64..6b1b4d4845 100644 --- a/keyboard/lufa/descriptor.h +++ b/keyboard/lufa/descriptor.h @@ -60,22 +60,34 @@ typedef struct USB_HID_Descriptor_HID_t Console_HID; USB_Descriptor_Endpoint_t Console_INEndpoint; USB_Descriptor_Endpoint_t Console_OUTEndpoint; + + // Extra HID Interface + USB_Descriptor_Interface_t Extra_Interface; + USB_HID_Descriptor_HID_t Extra_HID; + USB_Descriptor_Endpoint_t Extra_INEndpoint; } USB_Descriptor_Configuration_t; +/* nubmer of interfaces */ +#define TOTAL_INTERFACES 4 + +/* index of interface */ #define KEYBOARD_INTERFACE 0 #define MOUSE_INTERFACE 1 -#define GENERIC_INTERFACE 2 +#define CONSOLE_INTERFACE 2 +#define EXTRA_INTERFACE 3 -// Endopoint number/size +// Endopoint number and size #define KEYBOARD_IN_EPNUM 1 #define MOUSE_IN_EPNUM 2 -#define GENERIC_IN_EPNUM 3 -#define GENERIC_OUT_EPNUM 4 - -#define HID_EPSIZE 8 -#define GENERIC_EPSIZE 8 -#define GENERIC_REPORT_SIZE 8 +#define CONSOLE_IN_EPNUM 3 +#define CONSOLE_OUT_EPNUM 4 +#define EXTRA_IN_EPNUM 5 + +#define KEYBOARD_EPSIZE 8 +#define MOUSE_EPSIZE 8 +#define CONSOLE_EPSIZE 8 +#define EXTRA_EPSIZE 8 uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, |