Ignore:
Timestamp:
2011-02-25T10:40:14Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3a1aa20
Parents:
54e682f
Message:

Setting boot protocol for the keyboard, initialization in add_device().

  • Moved initialization of kbd to add_device() function. If it fails, it doesn't start to poll the keyboard.
  • Added setting of boot protocol to the keyboard in init_device().
  • Added constants for protocols to libusb/classes/hid (and renamed interface protocol enum).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/include/usb/classes/hid.h

    r54e682f r0475e13  
    5757} usb_hid_report_type_t;
    5858
     59typedef enum {
     60        USB_HID_PROTOCOL_BOOT = 0,
     61        USB_HID_PROTOCOL_REPORT = 1
     62} usb_hid_protocol_t;
     63
    5964/** USB/HID subclass constants. */
    6065typedef enum {
     
    6873        USB_HID_PROTOCOL_KEYBOARD = 1,
    6974        USB_HID_PROTOCOL_MOUSE = 2
    70 } usb_hid_protocol_t;
     75} usb_hid_iface_protocol_t;
    7176
    7277/** Part of standard USB HID descriptor specifying one class descriptor.
Note: See TracChangeset for help on using the changeset viewer.