Changeset ad4562c2 in mainline for uspace/lib/usb/src/hidparser.c


Ignore:
Timestamp:
2011-02-26T23: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:
882f8b1
Parents:
3a1aa20
Message:

Changed API for getting descriptors.

  • Changed usb_request_get_descriptor() and usb_request_get_descriptor_alloc().
  • Added parameter recipient, specifying if the descriptor is associated with device, interface, endpoint or other.
  • Modified all calls to it accordingly.

TODO not done in usbhid driver yet, but should not be used now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/hidparser.c

    r3a1aa20 rad4562c2  
    144144int usb_hid_boot_keyboard_output_report(uint8_t leds, uint8_t *data, size_t size)
    145145{
    146         if(size < 2){
     146        if (size < 1){
    147147                return -1;
    148148        }
    149149
    150         data[1] = leds;
     150        data[0] = leds;
    151151        return EOK;
    152152}
Note: See TracChangeset for help on using the changeset viewer.