added product string prefix to better distinguish variants

This commit is contained in:
Peter Lawrence 2021-02-15 20:28:22 -06:00
parent 26039d84c7
commit 5af4402cd1
4 changed files with 5 additions and 2 deletions

View File

@ -16,3 +16,4 @@ static uint8_t get_unique_id(uint16_t *desc_str)
return i; return i;
} }
#define PRODUCT_PREFIX ""

View File

@ -23,3 +23,4 @@ static uint8_t get_unique_id(uint16_t *desc_str)
return chr_count; return chr_count;
} }
#define PRODUCT_PREFIX "RP2040 "

View File

@ -17,3 +17,4 @@ static uint8_t get_unique_id(uint16_t *desc_str)
return chr_count; return chr_count;
} }
#define PRODUCT_PREFIX "STM32F072 "

View File

@ -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];