update pid for metro nrf52840

This commit is contained in:
hathach 2019-04-27 16:40:08 +07:00
parent a7c19a4d99
commit da2de8d519
No known key found for this signature in database
GPG Key ID: 2FA891220FBFD581
4 changed files with 24 additions and 9 deletions

View File

@ -58,6 +58,14 @@
#define BLEDIS_MANUFACTURER "Adafruit Industries"
#define BLEDIS_MODEL "Feather nRF52840 Express"
//--------------------------------------------------------------------+
// USB
//--------------------------------------------------------------------+
#define USB_DESC_VID 0x239A
#define USB_DESC_UF2_PID 0x0029
#define USB_DESC_CDC_ONLY_PID 0x002A
//------------- UF2 -------------//
#define UF2_PRODUCT_NAME "Adafruit Feather nRF52840 Express"
#define UF2_VOLUME_LABEL "FTHR840BOOT"
#define UF2_BOARD_ID "nRF52840-Feather-revD"

View File

@ -58,11 +58,18 @@
#define BLEDIS_MANUFACTURER "Adafruit Industries"
#define BLEDIS_MODEL "Metro nRF52840 Express"
#define UF2_PRODUCT_NAME "Adafruit Metro nRF52840 Express"
#define UF2_VOLUME_LABEL "METR840BOOT"
#define UF2_BOARD_ID "nRF52840-Metro-revA"
//--------------------------------------------------------------------+
// USB
//--------------------------------------------------------------------+
#define USB_DESC_VID 0x239A
#define USB_DESC_UF2_PID 0x003F
#define USB_DESC_CDC_ONLY_PID 0x0040
#define UF2_INDEX_URL "https://www.adafruit.com/"
//------------- UF2 -------------//
#define UF2_PRODUCT_NAME "Adafruit Metro nRF52840 Express"
#define UF2_VOLUME_LABEL "METR840BOOT"
#define UF2_BOARD_ID "nRF52840-Metro-revA"
#define UF2_INDEX_URL "https://www.adafruit.com/"
#endif /* _METRO_NRF52840_H_ */

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