Changeset 2899980 in mainline


Ignore:
Timestamp:
2011-02-04T17:02:32Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
89acf204
Parents:
d6f78857
Message:

Minor changes in usbhid driver

File:
1 edited

Legend:

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

    rd6f78857 r2899980  
    5656#include "layout.h"
    5757
    58 #define BUFFER_SIZE 32
     58#define BUFFER_SIZE 8
    5959#define NAME "usbhid"
    6060
     
    262262}
    263263
     264# if 0
    264265/*
    265266 * Kbd functions
     
    297298        return EOK;
    298299}
    299 
    300300static int usbkbd_process_descriptors(usb_hid_dev_kbd_t *kbd_dev)
    301301{
     
    363363        return EOK;
    364364}
    365 
     365#endif
    366366static usb_hid_dev_kbd_t *usbkbd_init_device(device_t *dev)
    367367{
     
    404404         */
    405405
     406
    406407        // TODO: get descriptors, parse descriptors and save endpoints
    407         usbkbd_process_descriptors(kbd_dev);
     408        //usbkbd_process_descriptors(kbd_dev);
     409        usb_drv_req_set_configuration(
     410          kbd_dev->device->parent_phone, kbd_dev->address, 1);
    408411
    409412
     
    467470
    468471        while (true) {
    469                 async_usleep(1000 * 1000 * 2);
     472                async_usleep(1000 * 10);
    470473
    471474                sess_rc = usb_endpoint_pipe_start_session(&kbd_dev->poll_pipe);
Note: See TracChangeset for help on using the changeset viewer.