update CH32V305 USB VID

This commit is contained in:
XIVN1987
2024-12-08 17:48:05 +08:00
parent ec56afcedf
commit f403988e4f
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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
+3 -3
View File
@@ -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