Using default VID/PID to avoid licensing issues with FSIJ.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2022-03-07 01:26:32 +01:00
parent 266be17366
commit e75b7bbb1b
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -33,10 +33,14 @@
* Auto ProductID layout's Bitmap:
* [MSB] MIDI | HID | MSC | CDC [LSB]
*/
#define USB_PID 0x0000
#define USB_VID 0x234b
#ifndef USB_VID
#define USB_VID 0xFEFF
#endif
#ifndef USB_PID
#define USB_PID 0xFCFD
#endif
#define USB_BCD 0x0200
#define USB_CONFIG_ATT_ONE TU_BIT(7)
@ -62,7 +66,7 @@ tusb_desc_device_t const desc_device =
.idVendor = (USB_VID),
.idProduct = (USB_PID),
.bcdDevice = (0x0100),
.bcdDevice = (0x0301),
.iManufacturer = 1,
.iProduct = 2,
@ -177,11 +181,11 @@ uint8_t const * tud_descriptor_bos_cb(void)
char const* string_desc_arr [] =
{
(const char[]) { 0x09, 0x04 }, // 0: is supported language is English (0x0409)
"TinyUSB", // 1: Manufacturer
"TinyUSB CCID", // 2: Product
"Pol Henarejos", // 1: Manufacturer
"HSM 2040", // 2: Product
"11223344", // 3: Serials, should use chip ID
"TinyUSB Config", // 4: Vendor Interface
"TinyUSB Interface"
"HSM 2040 Config", // 4: Vendor Interface
"HSM 2040 Interface"
};
static uint16_t _desc_str[32];