Update tinyusb to fix gamepad;add HID OUT interface descriptor

crypto-aes
Dan Halbert 3 years ago
parent d6e987e587
commit 05038ea1e5
  1. 2
      lib/tinyusb
  2. 9
      tools/gen_usb_descriptor.py

@ -1 +1 @@
Subproject commit f8081536310e5ac7a1e8c8ba9295890429a2cb6f
Subproject commit d3e48da5a1266a88f5f0fdfe28818c8599b09844

@ -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,
]
),
]

Loading…
Cancel
Save