board configs: differentiate the USB product strings
diff --git a/include/board_debugprobe_config.h b/include/board_debugprobe_config.h index 120df5b..e5e9157 100644 --- a/include/board_debugprobe_config.h +++ b/include/board_debugprobe_config.h
@@ -50,4 +50,6 @@ #define PICOPROBE_UART_RX_LED 7 #define PICOPROBE_UART_TX_LED 8 +#define PROBE_PRODUCT_STRING "Debug Probe (CMSIS-DAP)" + #endif \ No newline at end of file
diff --git a/include/board_example_config.h b/include/board_example_config.h index 6e98951..0e10ad9 100644 --- a/include/board_example_config.h +++ b/include/board_example_config.h
@@ -77,4 +77,6 @@ #define PICOPROBE_UART_RX_LED 7 #define PICOPROBE_UART_TX_LED 8 +#define PROBE_PRODUCT_STRING "Example Debug Probe" + #endif
diff --git a/include/board_pico_config.h b/include/board_pico_config.h index 00f325c..d013d4c 100644 --- a/include/board_pico_config.h +++ b/include/board_pico_config.h
@@ -45,4 +45,6 @@ #define PICOPROBE_USB_CONNECTED_LED 25 +#define PROBE_PRODUCT_STRING "Picoprobe (CMSIS-DAP)" + #endif \ No newline at end of file
diff --git a/src/usb_descriptors.c b/src/usb_descriptors.c index 9220aa7..ed5fc3c 100644 --- a/src/usb_descriptors.c +++ b/src/usb_descriptors.c
@@ -133,7 +133,7 @@ { (const char[]) { 0x09, 0x04 }, // 0: is supported language is English (0x0409) "Raspberry Pi", // 1: Manufacturer - "Debug Probe (CMSIS-DAP)", // 2: Product + PROBE_PRODUCT_STRING, // 2: Product usb_serial, // 3: Serial, uses flash unique ID "CMSIS-DAP v1 Interface", // 4: Interface descriptor for HID transport "CMSIS-DAP v2 Interface", // 5: Interface descriptor for Bulk transport