changeable USB PID support
This commit is contained in:
@@ -141,6 +141,9 @@ state according to the definition in the USB specification.
|
|||||||
#include "usb.h"
|
#include "usb.h"
|
||||||
#include "usb_device_hid.h"
|
#include "usb_device_hid.h"
|
||||||
|
|
||||||
|
// 0xECEE = pad interface 1, 0xECE5 = pad interface 2
|
||||||
|
#define USB_DEVICE_PID 0xECEE
|
||||||
|
|
||||||
/** CONSTANTS ******************************************************/
|
/** CONSTANTS ******************************************************/
|
||||||
#if defined(COMPILER_MPLAB_C18)
|
#if defined(COMPILER_MPLAB_C18)
|
||||||
#pragma romdata
|
#pragma romdata
|
||||||
@@ -157,7 +160,7 @@ const USB_DEVICE_DESCRIPTOR device_dsc=
|
|||||||
0x00, // Protocol code
|
0x00, // Protocol code
|
||||||
USB_EP0_BUFF_SIZE, // Max packet size for EP0, see usb_config.h
|
USB_EP0_BUFF_SIZE, // Max packet size for EP0, see usb_config.h
|
||||||
0x04D8, // Vendor ID, 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
|
0x0001, // Device release number in BCD format
|
||||||
0x01, // Manufacturer string index
|
0x01, // Manufacturer string index
|
||||||
0x02, // Product string index
|
0x02, // Product string index
|
||||||
|
|||||||
Reference in New Issue
Block a user