diff options
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 d45e905c6..6b1b4d484 100644 --- a/keyboard/lufa/descriptor.h +++ b/keyboard/lufa/descriptor.h | |||
| @@ -60,22 +60,34 @@ typedef struct | |||
| 60 | USB_HID_Descriptor_HID_t Console_HID; | 60 | USB_HID_Descriptor_HID_t Console_HID; |
| 61 | USB_Descriptor_Endpoint_t Console_INEndpoint; | 61 | USB_Descriptor_Endpoint_t Console_INEndpoint; |
| 62 | USB_Descriptor_Endpoint_t Console_OUTEndpoint; | 62 | USB_Descriptor_Endpoint_t Console_OUTEndpoint; |
| 63 | |||
| 64 | // Extra HID Interface | ||
| 65 | USB_Descriptor_Interface_t Extra_Interface; | ||
| 66 | USB_HID_Descriptor_HID_t Extra_HID; | ||
| 67 | USB_Descriptor_Endpoint_t Extra_INEndpoint; | ||
| 63 | } USB_Descriptor_Configuration_t; | 68 | } USB_Descriptor_Configuration_t; |
| 64 | 69 | ||
| 65 | 70 | ||
| 71 | /* nubmer of interfaces */ | ||
| 72 | #define TOTAL_INTERFACES 4 | ||
| 73 | |||
| 74 | /* index of interface */ | ||
| 66 | #define KEYBOARD_INTERFACE 0 | 75 | #define KEYBOARD_INTERFACE 0 |
| 67 | #define MOUSE_INTERFACE 1 | 76 | #define MOUSE_INTERFACE 1 |
| 68 | #define GENERIC_INTERFACE 2 | 77 | #define CONSOLE_INTERFACE 2 |
| 78 | #define EXTRA_INTERFACE 3 | ||
| 69 | 79 | ||
| 70 | // Endopoint number/size | 80 | // Endopoint number and size |
| 71 | #define KEYBOARD_IN_EPNUM 1 | 81 | #define KEYBOARD_IN_EPNUM 1 |
| 72 | #define MOUSE_IN_EPNUM 2 | 82 | #define MOUSE_IN_EPNUM 2 |
| 73 | #define GENERIC_IN_EPNUM 3 | 83 | #define CONSOLE_IN_EPNUM 3 |
| 74 | #define GENERIC_OUT_EPNUM 4 | 84 | #define CONSOLE_OUT_EPNUM 4 |
| 75 | 85 | #define EXTRA_IN_EPNUM 5 | |
| 76 | #define HID_EPSIZE 8 | 86 | |
| 77 | #define GENERIC_EPSIZE 8 | 87 | #define KEYBOARD_EPSIZE 8 |
| 78 | #define GENERIC_REPORT_SIZE 8 | 88 | #define MOUSE_EPSIZE 8 |
| 89 | #define CONSOLE_EPSIZE 8 | ||
| 90 | #define EXTRA_EPSIZE 8 | ||
| 79 | 91 | ||
| 80 | 92 | ||
| 81 | uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, | 93 | uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, |
