diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-10-01 15:57:16 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-10-01 15:57:16 -0400 |
| commit | 05038ea1e57d76b1ee013e61e747429e8c7c58e4 (patch) | |
| tree | 01adcbeae603f88185b0c503e018e5cfef19f8aa /tools | |
| parent | d6e987e5875c4933ea20a4ba8990548a925ca0bd (diff) | |
Update tinyusb to fix gamepad;add HID OUT interface descriptor
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/gen_usb_descriptor.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/gen_usb_descriptor.py b/tools/gen_usb_descriptor.py index 6bb401ef5..c4ff74d39 100644 --- a/tools/gen_usb_descriptor.py +++ b/tools/gen_usb_descriptor.py @@ -199,7 +199,13 @@ hid_endpoint_in_descriptor = standard.EndpointDescriptor( description="HID in", bEndpointAddress=0x0 | standard.EndpointDescriptor.DIRECTION_IN, bmAttributes=standard.EndpointDescriptor.TYPE_INTERRUPT, - bInterval=10) + bInterval=8) + +hid_endpoint_out_descriptor = standard.EndpointDescriptor( + description="HID out", + bEndpointAddress=0x0 | standard.EndpointDescriptor.DIRECTION_OUT, + bmAttributes=standard.EndpointDescriptor.TYPE_INTERRUPT, + bInterval=8) hid_interfaces = [ standard.InterfaceDescriptor( @@ -213,6 +219,7 @@ hid_interfaces = [ description="HID", wDescriptorLength=len(bytes(combined_hid_report_descriptor))), hid_endpoint_in_descriptor, + hid_endpoint_out_descriptor, ] ), ] |
