update CH32V305 USB VID

pull/13/head
XIVN1987 1 year ago
parent ec56afcedf
commit f403988e4f
  1. 2
      AT32F425/src/descriptor.c
  2. 6
      CH32V305/src/USBD/usb_desc.h

@ -75,7 +75,7 @@ ALIGNED_HEAD uint8_t g_config_descriptor[] ALIGNED_TAIL =
#endif #endif
0x00, // bInterfaceSubClass 0x00, // bInterfaceSubClass
0x00, // bInterfaceProtocol 0x00, // bInterfaceProtocol
0x05, // iInterface 0x05, // iInterface,必须是 5,因为 USB_INTERFACE_STRING == 5
#ifdef DAP_FW_V1 #ifdef DAP_FW_V1
// HID Descriptor // HID Descriptor

@ -2,11 +2,11 @@
#define __USB_DESC_H__ #define __USB_DESC_H__
#define USBD_VID 0x0416 #define USBD_VID 0x1A86
#ifdef DAP_FW_V1 #ifdef DAP_FW_V1
#define USBD_PID 0x5951 #define USBD_PID 0x5321
#else #else
#define USBD_PID 0x7997 #define USBD_PID 0x7321
#endif #endif

Loading…
Cancel
Save