Skip to content

Commit 05038ea

Browse files
committed
Update tinyusb to fix gamepad;add HID OUT interface descriptor
1 parent d6e987e commit 05038ea

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

lib/tinyusb

Submodule tinyusb updated 213 files

tools/gen_usb_descriptor.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,13 @@ def strings_in_order(cls):
199199
description="HID in",
200200
bEndpointAddress=0x0 | standard.EndpointDescriptor.DIRECTION_IN,
201201
bmAttributes=standard.EndpointDescriptor.TYPE_INTERRUPT,
202-
bInterval=10)
202+
bInterval=8)
203+
204+
hid_endpoint_out_descriptor = standard.EndpointDescriptor(
205+
description="HID out",
206+
bEndpointAddress=0x0 | standard.EndpointDescriptor.DIRECTION_OUT,
207+
bmAttributes=standard.EndpointDescriptor.TYPE_INTERRUPT,
208+
bInterval=8)
203209

204210
hid_interfaces = [
205211
standard.InterfaceDescriptor(
@@ -213,6 +219,7 @@ def strings_in_order(cls):
213219
description="HID",
214220
wDescriptorLength=len(bytes(combined_hid_report_descriptor))),
215221
hid_endpoint_in_descriptor,
222+
hid_endpoint_out_descriptor,
216223
]
217224
),
218225
]

0 commit comments

Comments
 (0)