0
0
Fork 0

feat(usb): change usb interface name to "Wireless ESP CMSIS-DAP"

pyOCD identifies the debugger by USB interface name, which include
substring "CMSIS-DAP". Let's change USB interface name to adapt pyOCD.
This commit is contained in:
windowsair 2024-01-28 21:17:39 +08:00
parent 3a7ed5922f
commit acfd967106
1 changed files with 5 additions and 3 deletions

View File

@ -84,10 +84,12 @@ const uint8_t kUSBd0InterfaceDescriptor[]=
USBD_CUSTOM_CLASS0_IF0_CLASS, // bInterfaceClass
USBD_CUSTOM_CLASS0_IF0_SUBCLASS, // bInterfaceSubClass
USBD_CUSTOM_CLASS0_IF0_PROTOCOL, // bInterfaceProtocol
0x00, // iInterface
/**
* pyOCD identifies the debugger by USB interface name, which include substring "CMSIS-DAP".
* See `strings_list` in `usb_handle.c`
*/
0x02, // iInterface
// Index of string descriptor describing this interface
////TODO: fix this 0x04 ?
// Standard Endpoint Descriptor