summaryrefslogtreecommitdiff
path: root/keyboard
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2016-03-26 12:15:49 +0300
committerYuval Adam <yuval@y3xz.com>2016-03-26 12:15:49 +0300
commit278cb2b03ca5ae750d300368862c68a274a479f1 (patch)
tree5f63ed58dd3daa4875f408de0d54e7ae5a47a6ad /keyboard
parent77a124b725db68815c514bf1a2e4506c5c2a83a6 (diff)
Initial changes to usbconfig.h
Diffstat (limited to 'keyboard')
-rw-r--r--keyboard/usbdrv/usbconfig.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/keyboard/usbdrv/usbconfig.h b/keyboard/usbdrv/usbconfig.h
index e228c2d..9fe0e00 100644
--- a/keyboard/usbdrv/usbconfig.h
+++ b/keyboard/usbdrv/usbconfig.h
@@ -218,7 +218,7 @@ section at the end of this file).
/* -------------------------- Device Description --------------------------- */
-#define USB_CFG_VENDOR_ID 0xc0, 0x16 /* = 0x16c0 = 5824 = voti.nl */
+#define USB_CFG_VENDOR_ID 0x42, 0x42 /* = 0x16c0 = 5824 = voti.nl */
/* USB vendor ID for the device, low byte first. If you have registered your
* own Vendor ID, define it here. Otherwise you may use one of obdev's free
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules!
@@ -227,7 +227,7 @@ section at the end of this file).
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
* the implications!
*/
-#define USB_CFG_DEVICE_ID 0xdc, 0x05 /* = 0x05dc = 1500 */
+#define USB_CFG_DEVICE_ID 0x31, 0xe1 /* = 0x05dc = 1500 */
/* This is the ID of the product, low byte first. It is interpreted in the
* scope of the vendor ID. If you have registered your own VID with usb.org
* or if you have licensed a PID from somebody else, define it here. Otherwise
@@ -266,20 +266,20 @@ section at the end of this file).
* to fine tune control over USB descriptors such as the string descriptor
* for the serial number.
*/
-#define USB_CFG_DEVICE_CLASS 0xff /* set to 0 if deferred to interface */
+#define USB_CFG_DEVICE_CLASS 0 /* set to 0 if deferred to interface */
#define USB_CFG_DEVICE_SUBCLASS 0
/* See USB specification if you want to conform to an existing device class.
* Class 0xff is "vendor specific".
*/
-#define USB_CFG_INTERFACE_CLASS 0 /* define class here if not at device level */
-#define USB_CFG_INTERFACE_SUBCLASS 0
-#define USB_CFG_INTERFACE_PROTOCOL 0
+#define USB_CFG_INTERFACE_CLASS 0x03 // HID
+#define USB_CFG_INTERFACE_SUBCLASS 0x01 // Boot
+#define USB_CFG_INTERFACE_PROTOCOL 0x01 // Keyboard
/* See USB specification if you want to conform to an existing device class or
* protocol. The following classes must be set at interface level:
* HID class is 3, no subclass and protocol required (but may be useful!)
* CDC class is 2, use subclass 2 and protocol 1 for ACM
*/
-/* #define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH 42 */
+#define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH 63
/* Define this to the length of the HID report descriptor, if you implement
* an HID device. Otherwise don't define it or define it to 0.
* If you use this define, you must add a PROGMEM character array named