Ignore:
File:
1 edited

Legend:

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

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