From 8ca0846538fa604768483094c24c39afad70be1b Mon Sep 17 00:00:00 2001 From: Boris Honman Date: Fri, 13 Sep 2019 16:58:08 -0400 Subject: [PATCH] changeable USB PID support --- firmware/src/usb_descriptors.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/src/usb_descriptors.c b/firmware/src/usb_descriptors.c index 9565321..ee4cd3d 100644 --- a/firmware/src/usb_descriptors.c +++ b/firmware/src/usb_descriptors.c @@ -141,6 +141,9 @@ state according to the definition in the USB specification. #include "usb.h" #include "usb_device_hid.h" +// 0xECEE = pad interface 1, 0xECE5 = pad interface 2 +#define USB_DEVICE_PID 0xECEE + /** CONSTANTS ******************************************************/ #if defined(COMPILER_MPLAB_C18) #pragma romdata @@ -157,7 +160,7 @@ const USB_DEVICE_DESCRIPTOR device_dsc= 0x00, // Protocol code USB_EP0_BUFF_SIZE, // Max packet size for EP0, see usb_config.h 0x04D8, // Vendor ID, see usb_config.h - 0xECEE, // Product ID, see usb_config.h + USB_DEVICE_PID, // Product ID, see usb_config.h 0x0001, // Device release number in BCD format 0x01, // Manufacturer string index 0x02, // Product string index