File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 18
18
19
19
#include " usb.h"
20
20
21
- /* USB VID/PID if not defined, tinyusb to use default value
22
- * Note: different class combination e.g CDC and (CDC + MSC) should have different
23
- * PID since Host OS will "remembered" device driver after the first plug */
24
- #define USB_VID 0x239A
25
- #define USB_PID 0x8029
26
-
27
21
// DEBUG Level 1
28
22
#if CFG_DEBUG
29
23
// weak function to avoid compilation error with
Original file line number Diff line number Diff line change @@ -138,6 +138,11 @@ static const uint8_t SCK = PIN_SPI_SCK ;
138
138
#define USB_MSC_BLOCK_SIZE 512
139
139
#define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE)
140
140
141
+ /* Note: different class combination e.g CDC and (CDC + MSC) should have different
142
+ * PID since Host OS will "remembered" device driver after the first plug */
143
+ #define USB_VID 0x239A
144
+ #define USB_PID 0x8029
145
+
141
146
#ifdef __cplusplus
142
147
}
143
148
#endif
Original file line number Diff line number Diff line change @@ -136,6 +136,11 @@ static const uint8_t SCK = PIN_SPI_SCK ;
136
136
// If EXTERNAL_FLASH_DEVICES is not defined, all supported devices will be used
137
137
#define EXTERNAL_FLASH_DEVICES GD25Q16C
138
138
139
+ /* Note: different class combination e.g CDC and (CDC + MSC) should have different
140
+ * PID since Host OS will "remembered" device driver after the first plug */
141
+ #define USB_VID 0x239A
142
+ #define USB_PID 0x8029
143
+
139
144
#ifdef __cplusplus
140
145
}
141
146
#endif
Original file line number Diff line number Diff line change @@ -131,6 +131,11 @@ static const uint8_t SCK = PIN_SPI_SCK ;
131
131
#define USB_MSC_BLOCK_SIZE 512
132
132
#define USB_MSC_BLOCK_COUNT ((8*1024*1024) / USB_MSC_BLOCK_SIZE)
133
133
134
+ /* Note: different class combination e.g CDC and (CDC + MSC) should have different
135
+ * PID since Host OS will "remembered" device driver after the first plug */
136
+ #define USB_VID 0x239A
137
+ #define USB_PID 0x8029
138
+
134
139
#ifdef __cplusplus
135
140
}
136
141
#endif
You can’t perform that action at this time.
0 commit comments