Skip to content

Commit 021dc0c

Browse files
committed
example for redefine vid and pid
1 parent 5859821 commit 021dc0c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

examples/custom_pins/custom_pins.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ extern "C" void tud_vendor_rx_cb(uint8_t itf)
105105
void setup() {
106106
USBDevice.setProductDescriptor("CMSIS-DAP");
107107
USBDevice.addInterface(cmsisdap_v2);
108-
108+
//USBDevice.setID(0x0D28,0x0204);
109109
// Custom pin definitions.
110110
// You must change pin definitions BEFORE calling DAP_Setup function.
111111
SWDIOPin.setPin(A9);

examples/daplink_v2/daplink_v2.ino

+1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ extern "C" void tud_vendor_rx_cb(uint8_t itf)
105105
void setup() {
106106
USBDevice.setProductDescriptor("CMSIS-DAP");
107107
USBDevice.addInterface(cmsisdap_v2);
108+
//USBDevice.setID(0x0D28,0x0204);
108109

109110
pinMode(LED_BUILTIN, OUTPUT);
110111

examples/simple_daplink/simple_daplink.ino

+2-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ uint8_t const desc_hid_report[] =
9494

9595
void setup() {
9696
USBDevice.setProductDescriptor("CMSIS-DAP");
97-
97+
//USBDevice.setID(0x0D28,0x0204);
98+
9899
usb_hid.enableOutEndpoint(true);
99100
usb_hid.setPollInterval(2);
100101
usb_hid.setBootProtocol(0);

0 commit comments

Comments
 (0)