diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2019-10-03 11:35:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-03 11:35:10 -0700 |
| commit | 68273545275f4ba782e0965abba0f03be82340d8 (patch) | |
| tree | a201a40b9b5bd9d6b934d919ec8e314499d10cd8 /tools | |
| parent | 22b7050c4cd8f2cad31657f91dd4a217b0444a76 (diff) | |
| parent | 463415a7efcdd0c852a9673cb3a438fde15af887 (diff) | |
Merge pull request #2185 from dhalbert/xac-gamepad-fixes
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, ] ), ] |
