update pid for metro nrf52840

This commit is contained in:
hathach
2019-04-27 16:40:08 +07:00
parent a7c19a4d99
commit da2de8d519
4 changed files with 24 additions and 9 deletions

View File

@ -97,7 +97,7 @@ void usb_init(bool cdc_only)
if ( cdc_only )
{
// Change PID to CDC only
usb_desc_dev.idProduct = USB_DESC_SERIAL_ONLY_PID;
usb_desc_dev.idProduct = USB_DESC_CDC_ONLY_PID;
// Remove MSC interface = reduce total interface + adjust config desc length
usb_desc_cfg.config.bNumInterfaces--;

View File

@ -33,15 +33,15 @@
#endif
#ifndef USB_DESC_VID
#define USB_DESC_VID 0x239A
#define USB_DESC_VID 0x239A
#endif
#ifndef USB_DESC_UF2_PID
#define USB_DESC_UF2_PID 0x0029
#define USB_DESC_UF2_PID 0x0029
#endif
#ifndef USB_DESC_SERIAL_ONLY_PID
#define USB_DESC_SERIAL_ONLY_PID 0x002A
#ifndef USB_DESC_CDC_ONLY_PID
#define USB_DESC_CDC_ONLY_PID 0x002A
#endif