update pid for metro nrf52840
This commit is contained in:
parent
a7c19a4d99
commit
da2de8d519
@ -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"
|
||||
|
@ -58,11 +58,18 @@
|
||||
#define BLEDIS_MANUFACTURER "Adafruit Industries"
|
||||
#define BLEDIS_MODEL "Metro nRF52840 Express"
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// USB
|
||||
//--------------------------------------------------------------------+
|
||||
#define USB_DESC_VID 0x239A
|
||||
#define USB_DESC_UF2_PID 0x003F
|
||||
#define USB_DESC_CDC_ONLY_PID 0x0040
|
||||
|
||||
//------------- 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_ */
|
||||
|
@ -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--;
|
||||
|
@ -40,8 +40,8 @@
|
||||
#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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user