move USB VID & PID to variant.h

This commit is contained in:
hathach committed 2019-04-25 01:05:13 +07:00
1 parent 68c94e1199
commit 202ee59d5c
4 files changed
+15 -6

No files matched your search

@@ -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
+5
View File
@@ -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