From c00b25ec45d447226932b59a1ea1120b7660b0d0 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Fri, 30 Mar 2018 23:31:28 -0400 Subject: [PATCH] WIP: HID works with MSC interfaces removed --- ports/atmel-samd/tools/gen_usb_descriptor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ports/atmel-samd/tools/gen_usb_descriptor.py b/ports/atmel-samd/tools/gen_usb_descriptor.py index 82f374bdcf..1b5c09bb61 100644 --- a/ports/atmel-samd/tools/gen_usb_descriptor.py +++ b/ports/atmel-samd/tools/gen_usb_descriptor.py @@ -129,7 +129,7 @@ hid_endpoint_in_descriptor = standard.EndpointDescriptor( hid_endpoint_out_descriptor = standard.EndpointDescriptor( description="HID out", - bEndpointAddress=0x1 | standard.EndpointDescriptor.DIRECTION_OUT, + bEndpointAddress=0x0 | standard.EndpointDescriptor.DIRECTION_OUT, bmAttributes=standard.EndpointDescriptor.TYPE_INTERRUPT) hid_interfaces = [ @@ -155,7 +155,8 @@ hid_interfaces = [ ] # 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( description="CDC function",