diff options
Diffstat (limited to 'tmk_core/protocol/vusb/vusb.h')
| -rw-r--r-- | tmk_core/protocol/vusb/vusb.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tmk_core/protocol/vusb/vusb.h b/tmk_core/protocol/vusb/vusb.h index e097323fd..96471433c 100644 --- a/tmk_core/protocol/vusb/vusb.h +++ b/tmk_core/protocol/vusb/vusb.h | |||
| @@ -93,19 +93,24 @@ typedef struct usbConfigurationDescriptor { | |||
| 93 | usbInterfaceDescriptor_t mouseExtraInterface; | 93 | usbInterfaceDescriptor_t mouseExtraInterface; |
| 94 | usbHIDDescriptor_t mouseExtraHID; | 94 | usbHIDDescriptor_t mouseExtraHID; |
| 95 | usbEndpointDescriptor_t mouseExtraINEndpoint; | 95 | usbEndpointDescriptor_t mouseExtraINEndpoint; |
| 96 | #elif defined(RAW_ENABLE) | 96 | #endif |
| 97 | |||
| 98 | #if defined(RAW_ENABLE) | ||
| 97 | usbInterfaceDescriptor_t rawInterface; | 99 | usbInterfaceDescriptor_t rawInterface; |
| 98 | usbHIDDescriptor_t rawHID; | 100 | usbHIDDescriptor_t rawHID; |
| 99 | usbEndpointDescriptor_t rawINEndpoint; | 101 | usbEndpointDescriptor_t rawINEndpoint; |
| 100 | usbEndpointDescriptor_t rawOUTEndpoint; | 102 | usbEndpointDescriptor_t rawOUTEndpoint; |
| 101 | #endif | 103 | #endif |
| 104 | |||
| 105 | #if defined(CONSOLE_ENABLE) | ||
| 106 | usbInterfaceDescriptor_t consoleInterface; | ||
| 107 | usbHIDDescriptor_t consoleHID; | ||
| 108 | usbEndpointDescriptor_t consoleINEndpoint; | ||
| 109 | usbEndpointDescriptor_t consoleOUTEndpoint; | ||
| 110 | #endif | ||
| 102 | } __attribute__((packed)) usbConfigurationDescriptor_t; | 111 | } __attribute__((packed)) usbConfigurationDescriptor_t; |
| 103 | 112 | ||
| 104 | #define USB_STRING_LEN(s) (sizeof(usbDescriptorHeader_t) + ((s) << 1)) | 113 | #define USB_STRING_LEN(s) (sizeof(usbDescriptorHeader_t) + ((s) << 1)) |
| 105 | 114 | ||
| 106 | host_driver_t *vusb_driver(void); | 115 | host_driver_t *vusb_driver(void); |
| 107 | void vusb_transfer_keyboard(void); | 116 | void vusb_transfer_keyboard(void); |
| 108 | |||
| 109 | #ifdef RAW_ENABLE | ||
| 110 | void raw_hid_task(void); | ||
| 111 | #endif | ||
