Changeset 2f593872 in mainline


Ignore:
Timestamp:
2011-03-08T20:48:57Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7351dc3
Parents:
32bfb96
Message:

Printing of descriptor + turned on report parsing.

Location:
uspace/drv/usbhid
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/hiddev.c

    r32bfb96 r2f593872  
    234234        }
    235235       
     236        usb_hid_descriptor_print(hid_dev->parser);
     237       
    236238        return EOK;
    237239}
  • uspace/drv/usbhid/kbddev.c

    r32bfb96 r2f593872  
    440440        callbacks->keyboard = usbhid_kbd_process_keycodes;
    441441
    442         usb_log_debug("Calling usb_hid_boot_keyboard_input_report() with "
     442        usb_log_debug("Calling usb_hid_parse_report() with "
    443443            "buffer %s\n", usb_debug_str_buffer(buffer, actual_size, 0));
    444444       
    445         int rc = usb_hid_boot_keyboard_input_report(buffer, actual_size,
    446             callbacks, kbd_dev);
     445//      int rc = usb_hid_boot_keyboard_input_report(buffer, actual_size,
     446//          callbacks, kbd_dev);
     447        int rc = usb_hid_parse_report(kbd_dev->hid_dev->parser, buffer,
     448            actual_size, callbacks, kbd_dev);
    447449       
    448450        if (rc != EOK) {
     
    558560        assert(kbd_dev->hid_dev != NULL);
    559561        assert(kbd_dev->hid_dev->initialized);
    560         usbhid_req_set_protocol(kbd_dev->hid_dev, USB_HID_PROTOCOL_BOOT);
     562        //usbhid_req_set_protocol(kbd_dev->hid_dev, USB_HID_PROTOCOL_BOOT);
    561563       
    562564        usbhid_kbd_set_led(kbd_dev);
Note: See TracChangeset for help on using the changeset viewer.