Change VID and PID to 0x15a2 and 0x6120 respectively.

This commit is contained in:
László Monda
2017-05-24 02:02:43 +02:00
parent 22c1f2db5b
commit 883dc28dca
3 changed files with 6 additions and 6 deletions

View File

@@ -50,8 +50,8 @@ public:
//! @brief Constants //! @brief Constants
enum _usbhid_contants enum _usbhid_contants
{ {
kDefault_Vid = 0x15a2, //!< Freescale VID kDefault_Vid = 0x1D50, //!< UHK VID
kDefault_Pid = 0x0073, //!< PID for KL25Z48M kDefault_Pid = 0x6120, //!< UHK PID
}; };
public: public:

View File

@@ -178,9 +178,9 @@ uint8_t g_device_descriptor[USB_DEVICE_DESCRIPTOR_LENGTH] = {
/* Max Packet size */ /* Max Packet size */
USB_CONTROL_MAX_PACKET_SIZE, USB_CONTROL_MAX_PACKET_SIZE,
/* Vendor ID */ /* Vendor ID */
0xa2, 0x15, /* Vendor ID for Freescale */ 0x50, 0x1D, /* UHK VID*/
/* Product ID */ /* Product ID */
0x73, 0x00, /* 0x73,0x00,ProductID for KL25Z48M */ 0x20, 0x61, /* UHK PID */
/* BCD Device version */ /* BCD Device version */
0x02, 0x00, 0x02, 0x00,
/* Manufacturer string index */ /* Manufacturer string index */

View File

@@ -305,8 +305,8 @@ __isr_vector:
.byte 0x10 // [10:10] enabledPeripherals /* SGF Bit 4 corresponds to USB HID */ .byte 0x10 // [10:10] enabledPeripherals /* SGF Bit 4 corresponds to USB HID */
.byte 0xFF // [11:11] i2cSlaveAddress .byte 0xFF // [11:11] i2cSlaveAddress
.short 5000 // [12:13] peripheralDetectionTimeoutMs - Timeout in milliseconds for peripheral detection before jumping to application code .short 5000 // [12:13] peripheralDetectionTimeoutMs - Timeout in milliseconds for peripheral detection before jumping to application code
.short 0xFFFF // [14:15] usbVid .short 0x1D50 // [14:15] usbVid
.short 0xFFFF // [16:17] usbPid .short 0x6120 // [16:17] usbPid
.long 0xFFFFFFFF // [18:1b] usbStringsPointer .long 0xFFFFFFFF // [18:1b] usbStringsPointer
.byte 0x00 // [1c:1c] clockFlags - High Speed and other clock options /* SGF Set to 0 to enable 48 MHz CLK and USB HID */ .byte 0x00 // [1c:1c] clockFlags - High Speed and other clock options /* SGF Set to 0 to enable 48 MHz CLK and USB HID */
.byte 0xFF // [1d:1d] clockDivider - One's complement of clock divider, zero divider is divide by 1 .byte 0xFF // [1d:1d] clockDivider - One's complement of clock divider, zero divider is divide by 1