Changeset e3c78efc in mainline
- Timestamp:
- 2011-11-09T12:59:37Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6f730278
- Parents:
- 555499da
- Location:
- uspace/drv/bus/usb/usbhid
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/kbd/kbddev.c
r555499da re3c78efc 102 102 static void usb_kbd_set_led(usb_hid_dev_t *hid_dev, usb_kbd_t *kbd_dev); 103 103 /*----------------------------------------------------------------------------*/ 104 enum { 105 USB_KBD_BOOT_REPORT_DESCRIPTOR_SIZE = 63 106 }; 107 108 static const uint8_t USB_KBD_BOOT_REPORT_DESCRIPTOR[ 109 USB_KBD_BOOT_REPORT_DESCRIPTOR_SIZE] = { 104 static const uint8_t USB_KBD_BOOT_REPORT_DESCRIPTOR[] = { 110 105 0x05, 0x01, // Usage Page (Generic Desktop), 111 106 0x09, 0x06, // Usage (Keyboard), 112 107 0xA1, 0x01, // Collection (Application), 113 108 0x75, 0x01, // Report Size (1), 114 0x95, 0x08, // Report Count (8), 109 0x95, 0x08, // Report Count (8), 115 110 0x05, 0x07, // Usage Page (Key Codes); 116 111 0x19, 0xE0, // Usage Minimum (224), … … 796 791 int rc = usb_hid_parse_report_descriptor( 797 792 &hid_dev->report, USB_KBD_BOOT_REPORT_DESCRIPTOR, 798 USB_KBD_BOOT_REPORT_DESCRIPTOR_SIZE);793 sizeof(USB_KBD_BOOT_REPORT_DESCRIPTOR)); 799 794 800 795 if (rc != EOK) { -
uspace/drv/bus/usb/usbhid/mouse/mousedev.c
r555499da re3c78efc 77 77 78 78 /*----------------------------------------------------------------------------*/ 79 80 enum { 81 USB_MOUSE_BOOT_REPORT_DESCRIPTOR_SIZE = 63 82 }; 83 84 static const uint8_t USB_MOUSE_BOOT_REPORT_DESCRIPTOR[ 85 USB_MOUSE_BOOT_REPORT_DESCRIPTOR_SIZE] = { 79 static const uint8_t USB_MOUSE_BOOT_REPORT_DESCRIPTOR[] = { 86 80 0x05, 0x01, // USAGE_PAGE (Generic Desktop) 87 81 0x09, 0x02, // USAGE (Mouse) … … 540 534 int rc = usb_hid_parse_report_descriptor( 541 535 &hid_dev->report, USB_MOUSE_BOOT_REPORT_DESCRIPTOR, 542 USB_MOUSE_BOOT_REPORT_DESCRIPTOR_SIZE);536 sizeof(USB_MOUSE_BOOT_REPORT_DESCRIPTOR)); 543 537 544 538 if (rc != EOK) { -
uspace/drv/bus/usb/usbhid/usbhid.c
r555499da re3c78efc 301 301 assert(dev); 302 302 303 304 303 if (dev->pipes[USB_HID_KBD_POLL_EP_NO].present) { 305 304 usb_log_debug("Found keyboard endpoint.\n");
Note:
See TracChangeset
for help on using the changeset viewer.