WIP: HID works with MSC interfaces removed

This commit is contained in:
Dan Halbert 2018-03-30 23:31:28 -04:00
parent df91878d2e
commit c00b25ec45

View File

@ -129,7 +129,7 @@ hid_endpoint_in_descriptor = standard.EndpointDescriptor(
hid_endpoint_out_descriptor = standard.EndpointDescriptor( hid_endpoint_out_descriptor = standard.EndpointDescriptor(
description="HID out", description="HID out",
bEndpointAddress=0x1 | standard.EndpointDescriptor.DIRECTION_OUT, bEndpointAddress=0x0 | standard.EndpointDescriptor.DIRECTION_OUT,
bmAttributes=standard.EndpointDescriptor.TYPE_INTERRUPT) bmAttributes=standard.EndpointDescriptor.TYPE_INTERRUPT)
hid_interfaces = [ hid_interfaces = [
@ -155,7 +155,8 @@ hid_interfaces = [
] ]
# This will renumber the endpoints to make them unique across descriptors. # This will renumber the endpoints to make them unique across descriptors.
interfaces = util.join_interfaces(cdc_interfaces, msc_interfaces, hid_interfaces) #interfaces = util.join_interfaces(cdc_interfaces, msc_interfaces, hid_interfaces)
interfaces = util.join_interfaces(cdc_interfaces, hid_interfaces)
cdc_function = standard.InterfaceAssociationDescriptor( cdc_function = standard.InterfaceAssociationDescriptor(
description="CDC function", description="CDC function",