Browse Source

USB: use pid.codes USB PID codes for CuVoodoo board

spark_strober
King Kévin 5 years ago
parent
commit
96f3458317
  1. 4
      lib/usb_cdcacm.c
  2. 4
      lib/usb_dfu.c

4
lib/usb_cdcacm.c

@ -64,7 +64,7 @@ static const struct usb_device_descriptor usb_cdcacm_device_descriptor = { @@ -64,7 +64,7 @@ static const struct usb_device_descriptor usb_cdcacm_device_descriptor = {
.bDeviceProtocol = 0, /**< unused */
.bMaxPacketSize0 = 64, /**< packet size for endpoint zero in bytes */
.idVendor = 0x1209, /**< pid.codes vendor ID */
.idProduct = 0x4256, /**< BusVoodo product ID within the Vendor ID space */
.idProduct = 0x4356, /**< CuVoodoo product ID within the Vendor ID space */
.bcdDevice = 0x0000, /**< Device Release Number: board version number */
.iManufacturer = 1, /**< the index of the string in the string table that represents the name of the manufacturer of this device */
.iProduct = 2, /**< the index of the string in the string table that represents the name of the product */
@ -239,7 +239,7 @@ static const struct usb_config_descriptor usb_cdcacm_configuration_descriptor = @@ -239,7 +239,7 @@ static const struct usb_config_descriptor usb_cdcacm_configuration_descriptor =
*/
static const char *usb_strings[] = {
"CuVoodoo", /**< manufacturer string */
"BusVoodoo multi-protocol debugging adapter", /**< product string */
"CuVoodoo STM32F1xx firmware", /**< product string */
"DFU bootloader (runtime mode)", /**< DFU interface string */
};

4
lib/usb_dfu.c

@ -56,7 +56,7 @@ static const struct usb_device_descriptor usb_dfu_device = { @@ -56,7 +56,7 @@ static const struct usb_device_descriptor usb_dfu_device = {
.bDeviceProtocol = 0, /**< unused */
.bMaxPacketSize0 = 64, /**< packet size for endpoint zero in bytes */
.idVendor = 0x1209, /**< pid.codes vendor ID */
.idProduct = 0x4256, /**< BusVoodo product ID within the Vendor ID space */
.idProduct = 0x4356, /**< CuVoodo product ID within the Vendor ID space */
.bcdDevice = 0x0000, /**< Device Release Number: board version number */
.iManufacturer = 1, /**< the index of the string in the string table that represents the name of the manufacturer of this device */
.iProduct = 2, /**< the index of the string in the string table that represents the name of the product */
@ -120,7 +120,7 @@ static const struct usb_config_descriptor usb_dfu_configuration = { @@ -120,7 +120,7 @@ static const struct usb_config_descriptor usb_dfu_configuration = {
*/
static const char *usb_dfu_strings[] = {
"CuVoodoo", /**< manufacturer string */
"BusVoodoo multi-protocol debugging adapter ", /**< product string */
"CuVoodoo STM32F1xx DFU bootloader", /**< product string */
"DFU bootloader (DFU mode)", /**< DFU interface string */
};

Loading…
Cancel
Save