move USB VID & PID to variant.h
This commit is contained in:
4 files changed
+15
-6
No files matched your search
@@ -18,12 +18,6 @@
|
||||
|
||||
#include "usb.h"
|
||||
|
||||
/* USB VID/PID if not defined, tinyusb to use default value
|
||||
* Note: different class combination e.g CDC and (CDC + MSC) should have different
|
||||
* PID since Host OS will "remembered" device driver after the first plug */
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x8029
|
||||
|
||||
// DEBUG Level 1
|
||||
#if CFG_DEBUG
|
||||
// weak function to avoid compilation error with
|
||||
|
||||
@@ -138,6 +138,11 @@ static const uint8_t SCK = PIN_SPI_SCK ;
|
||||
#define USB_MSC_BLOCK_SIZE 512
|
||||
#define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE)
|
||||
|
||||
/* Note: different class combination e.g CDC and (CDC + MSC) should have different
|
||||
* PID since Host OS will "remembered" device driver after the first plug */
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x8029
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -136,6 +136,11 @@ static const uint8_t SCK = PIN_SPI_SCK ;
|
||||
// If EXTERNAL_FLASH_DEVICES is not defined, all supported devices will be used
|
||||
#define EXTERNAL_FLASH_DEVICES GD25Q16C
|
||||
|
||||
/* Note: different class combination e.g CDC and (CDC + MSC) should have different
|
||||
* PID since Host OS will "remembered" device driver after the first plug */
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x8029
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -131,6 +131,11 @@ static const uint8_t SCK = PIN_SPI_SCK ;
|
||||
#define USB_MSC_BLOCK_SIZE 512
|
||||
#define USB_MSC_BLOCK_COUNT ((8*1024*1024) / USB_MSC_BLOCK_SIZE)
|
||||
|
||||
/* Note: different class combination e.g CDC and (CDC + MSC) should have different
|
||||
* PID since Host OS will "remembered" device driver after the first plug */
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x8029
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user