Changeset 24d943f in mainline


Ignore:
Timestamp:
2011-03-03T21:02:09Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0e164ed
Parents:
d3594362
Message:

Using polling interval from endpoint descriptor

Location:
uspace/drv/usbhid
Files:
3 edited

Legend:

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

    rd3594362 r24d943f  
    206206        assert(endpoint_mapping[0].interface != NULL);
    207207       
     208        /*
     209         * Save polling interval
     210         */
     211        hid_dev->poll_interval = endpoint_mapping[0].descriptor->poll_interval;
     212        assert(hid_dev->poll_interval > 0);
     213       
    208214        rc = usbhid_dev_get_report_descriptor(hid_dev,
    209215            descriptors, descriptors_size,
  • uspace/drv/usbhid/hiddev.h

    rd3594362 r24d943f  
    5757        usb_endpoint_pipe_t poll_pipe;
    5858       
     59        short poll_interval;
     60       
    5961        uint16_t iface;
    6062       
  • uspace/drv/usbhid/kbddev.c

    rd3594362 r24d943f  
    593593
    594594        while (true) {
    595                 async_usleep(1000 * 10);
    596 
    597595                sess_rc = usb_endpoint_pipe_start_session(
    598596                    &kbd_dev->hid_dev->poll_pipe);
     
    635633                usb_log_debug("Calling usbhid_kbd_process_data()\n");
    636634                usbhid_kbd_process_data(kbd_dev, buffer, actual_size);
     635               
     636                async_usleep(kbd_dev->hid_dev->poll_interval);
    637637        }
    638638
Note: See TracChangeset for help on using the changeset viewer.