From 32b1c183d341f8a67835cea744be5c627db767e1 Mon Sep 17 00:00:00 2001 From: Piers Titus van der Torren Date: Fri, 5 Mar 2021 15:50:09 +0100 Subject: [PATCH] change usb vid to F055, see f055.io --- usbcfg.c | 6 ++---- usbcfg.h | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/usbcfg.c b/usbcfg.c index 6a659a2..18837d8 100644 --- a/usbcfg.c +++ b/usbcfg.c @@ -102,11 +102,9 @@ static const uint8_t vcom_string0[] = { * Vendor string. */ static const uint8_t vcom_string1[] = { - USB_DESC_BYTE(38), /* bLength. */ + USB_DESC_BYTE(14), /* bLength. */ USB_DESC_BYTE(USB_DESCRIPTOR_STRING), /* bDescriptorType. */ - 'S', 0, 'T', 0, 'M', 0, 'i', 0, 'c', 0, 'r', 0, 'o', 0, 'e', 0, - 'l', 0, 'e', 0, 'c', 0, 't', 0, 'r', 0, 'o', 0, 'n', 0, 'i', 0, - 'c', 0, 's', 0 + 'S', 0, 't', 0, 'r', 0, 'i', 0, 's', 0, 'o', 0, }; /* diff --git a/usbcfg.h b/usbcfg.h index 530222e..3219ddd 100644 --- a/usbcfg.h +++ b/usbcfg.h @@ -18,10 +18,10 @@ #define USBCFG_H #ifndef USB_VID -#define USB_VID 0x0483 // STMicroelectronics +#define USB_VID 0xF055 // FOSS #endif #ifndef USB_PID -#define USB_PID 0x5720 // STMicroelectronics Mass Storage Device +#define USB_PID 0x5720 // Mass Storage Device #endif #define USBD1_DATA_REQUEST_EP 1