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

View File

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