added product string prefix to better distinguish variants
This commit is contained in:
parent
26039d84c7
commit
5af4402cd1
|
@ -16,3 +16,4 @@ static uint8_t get_unique_id(uint16_t *desc_str)
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define PRODUCT_PREFIX ""
|
||||||
|
|
|
@ -23,3 +23,4 @@ static uint8_t get_unique_id(uint16_t *desc_str)
|
||||||
return chr_count;
|
return chr_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define PRODUCT_PREFIX "RP2040 "
|
||||||
|
|
|
@ -17,3 +17,4 @@ static uint8_t get_unique_id(uint16_t *desc_str)
|
||||||
return chr_count;
|
return chr_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define PRODUCT_PREFIX "STM32F072 "
|
||||||
|
|
|
@ -60,7 +60,7 @@ tusb_desc_device_t const desc_device =
|
||||||
|
|
||||||
.idVendor = 0xCafe,
|
.idVendor = 0xCafe,
|
||||||
.idProduct = USB_PID,
|
.idProduct = USB_PID,
|
||||||
.bcdDevice = 0x0100,
|
.bcdDevice = 0x0101,
|
||||||
|
|
||||||
.iManufacturer = STRID_MANUFACTURER,
|
.iManufacturer = STRID_MANUFACTURER,
|
||||||
.iProduct = STRID_PRODUCT,
|
.iProduct = STRID_PRODUCT,
|
||||||
|
@ -134,7 +134,7 @@ char const* string_desc_arr [] =
|
||||||
{
|
{
|
||||||
[STRID_LANGID] = (const char[]) { 0x09, 0x04 }, // supported language is English (0x0409)
|
[STRID_LANGID] = (const char[]) { 0x09, 0x04 }, // supported language is English (0x0409)
|
||||||
[STRID_MANUFACTURER] = "TinyUSB", // Manufacturer
|
[STRID_MANUFACTURER] = "TinyUSB", // Manufacturer
|
||||||
[STRID_PRODUCT] = "TinyUSB CMSIS-DAP", // Product
|
[STRID_PRODUCT] = PRODUCT_PREFIX "CMSIS-DAP", // Product
|
||||||
};
|
};
|
||||||
static uint16_t _desc_str[32];
|
static uint16_t _desc_str[32];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue