File tree Expand file tree Collapse file tree 4 files changed +24
-9
lines changed Expand file tree Collapse file tree 4 files changed +24
-9
lines changed Original file line number Diff line number Diff line change 58
58
#define BLEDIS_MANUFACTURER "Adafruit Industries"
59
59
#define BLEDIS_MODEL "Feather nRF52840 Express"
60
60
61
+ //--------------------------------------------------------------------+
62
+ // USB
63
+ //--------------------------------------------------------------------+
64
+ #define USB_DESC_VID 0x239A
65
+ #define USB_DESC_UF2_PID 0x0029
66
+ #define USB_DESC_CDC_ONLY_PID 0x002A
67
+
68
+ //------------- UF2 -------------//
61
69
#define UF2_PRODUCT_NAME "Adafruit Feather nRF52840 Express"
62
70
#define UF2_VOLUME_LABEL "FTHR840BOOT"
63
71
#define UF2_BOARD_ID "nRF52840-Feather-revD"
Original file line number Diff line number Diff line change 58
58
#define BLEDIS_MANUFACTURER "Adafruit Industries"
59
59
#define BLEDIS_MODEL "Metro nRF52840 Express"
60
60
61
- #define UF2_PRODUCT_NAME "Adafruit Metro nRF52840 Express"
62
- #define UF2_VOLUME_LABEL "METR840BOOT"
63
- #define UF2_BOARD_ID "nRF52840-Metro-revA"
61
+ //--------------------------------------------------------------------+
62
+ // USB
63
+ //--------------------------------------------------------------------+
64
+ #define USB_DESC_VID 0x239A
65
+ #define USB_DESC_UF2_PID 0x003F
66
+ #define USB_DESC_CDC_ONLY_PID 0x0040
64
67
65
- #define UF2_INDEX_URL "https://www.adafruit.com/"
68
+ //------------- UF2 -------------//
69
+ #define UF2_PRODUCT_NAME "Adafruit Metro nRF52840 Express"
70
+ #define UF2_VOLUME_LABEL "METR840BOOT"
71
+ #define UF2_BOARD_ID "nRF52840-Metro-revA"
66
72
73
+ #define UF2_INDEX_URL "https://www.adafruit.com/"
67
74
68
75
#endif /* _METRO_NRF52840_H_ */
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ void usb_init(bool cdc_only)
97
97
if ( cdc_only )
98
98
{
99
99
// Change PID to CDC only
100
- usb_desc_dev .idProduct = USB_DESC_SERIAL_ONLY_PID ;
100
+ usb_desc_dev .idProduct = USB_DESC_CDC_ONLY_PID ;
101
101
102
102
// Remove MSC interface = reduce total interface + adjust config desc length
103
103
usb_desc_cfg .config .bNumInterfaces -- ;
Original file line number Diff line number Diff line change 33
33
#endif
34
34
35
35
#ifndef USB_DESC_VID
36
- #define USB_DESC_VID 0x239A
36
+ #define USB_DESC_VID 0x239A
37
37
#endif
38
38
39
39
#ifndef USB_DESC_UF2_PID
40
- #define USB_DESC_UF2_PID 0x0029
40
+ #define USB_DESC_UF2_PID 0x0029
41
41
#endif
42
42
43
- #ifndef USB_DESC_SERIAL_ONLY_PID
44
- #define USB_DESC_SERIAL_ONLY_PID 0x002A
43
+ #ifndef USB_DESC_CDC_ONLY_PID
44
+ #define USB_DESC_CDC_ONLY_PID 0x002A
45
45
#endif
46
46
47
47
You can’t perform that action at this time.
0 commit comments