diff options
author | Takuya Urakawa <urkwtky@gmail.com> | 2020-03-31 05:15:05 +0900 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2020-06-12 17:00:27 +0900 |
commit | e1754460c2a9ee2c61798da7cd158327b380de0b (patch) | |
tree | 7cf046f74db2f94c9226aaa6c12d0ec68e6c7595 /tmk_core/protocol/vusb/vusb.h | |
parent | b656b61e58726a275297878f003ea3ffb12c1f80 (diff) |
add hid_raw feature to VUSB (#8380)
* rewrite usbhid feature on vusb
* Apply suggestions from code review
Co-Authored-By: Ryan <fauxpark@gmail.com>
* fix typo
* fix typo again
* Update tmk_core/protocol/vusb/vusb.c
Co-Authored-By: Ryan <fauxpark@gmail.com>
* clean up defines
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'tmk_core/protocol/vusb/vusb.h')
-rw-r--r-- | tmk_core/protocol/vusb/vusb.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tmk_core/protocol/vusb/vusb.h b/tmk_core/protocol/vusb/vusb.h index debac67d24..6d491266db 100644 --- a/tmk_core/protocol/vusb/vusb.h +++ b/tmk_core/protocol/vusb/vusb.h @@ -97,6 +97,13 @@ typedef struct usbConfigurationDescriptor { # ifdef USB_CFG_HAVE_INTRIN_ENDPOINT3 usbEndpointDescriptor_t mouseExtraINEndpoint; # endif +#elif defined(RAW_ENABLE) + usbInterfaceDescriptor_t rawInterface; + usbHIDDescriptor_t rawHID; +# ifdef USB_CFG_HAVE_INTRIN_ENDPOINT3 + usbEndpointDescriptor_t rawINEndpoint; + usbEndpointDescriptor_t rawOUTEndpoint; +# endif #endif } __attribute__((packed)) usbConfigurationDescriptor_t; @@ -104,3 +111,7 @@ typedef struct usbConfigurationDescriptor { host_driver_t *vusb_driver(void); void vusb_transfer_keyboard(void); + +#if defined(RAW_ENABLE) +void raw_hid_task(void); +#endif |