Skip to content

Commit

Permalink
change usb vid to F055, see f055.io
Browse files Browse the repository at this point in the history
  • Loading branch information
pierstitus committed Mar 5, 2021
1 parent 4ff3b47 commit 32b1c18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions usbcfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

/*
Expand Down
4 changes: 2 additions & 2 deletions usbcfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32b1c18

Please sign in to comment.