Skip to content

Commit

Permalink
Added proper USB VID/PID
Browse files Browse the repository at this point in the history
Kindly assigned by the Raspberry Pi foundation, the project got its own
VID/PID so removing the current "test" one and adding this one. No other
changes.
  • Loading branch information
Hrvoje Cavrak committed Jan 13, 2024
1 parent c9a3bc4 commit 2711b91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Binary file modified binaries/board_A.uf2
Binary file not shown.
Binary file modified binaries/board_B.uf2
Binary file not shown.
7 changes: 4 additions & 3 deletions src/usb_descriptors.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ tusb_desc_device_t const desc_device = {.bLength = sizeof(tusb_desc_device_t),
.bDeviceProtocol = 0x00,
.bMaxPacketSize0 = CFG_TUD_ENDPOINT0_SIZE,

.idVendor = 0x1209,
.idProduct = 0x0007, // Project will apply for its own PID
// https://github.com/raspberrypi/usb-pid
.idVendor = 0x2E8A,
.idProduct = 0x107C,
.bcdDevice = 0x0100,

.iManufacturer = 0x01,
Expand Down Expand Up @@ -194,7 +195,7 @@ char const* string_desc_arr[] = {
(const char[]){0x09, 0x04}, // 0: is supported language is English (0x0409)
"Hrvoje Cavrak", // 1: Manufacturer
"DeskHop Switch", // 2: Product
"31415926535", // 3: Serials, should use chip ID
"0", // 3: Serials, should use chip ID
};

static uint16_t _desc_str[32];
Expand Down

0 comments on commit 2711b91

Please sign in to comment.