Changes in uspace/drv/usbhid/main.c [2899980:ff244e6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/main.c
r2899980 rff244e6 56 56 #include "layout.h" 57 57 58 #define BUFFER_SIZE 858 #define BUFFER_SIZE 32 59 59 #define NAME "usbhid" 60 60 … … 262 262 } 263 263 264 # if 0265 264 /* 266 265 * Kbd functions … … 298 297 return EOK; 299 298 } 299 300 300 static int usbkbd_process_descriptors(usb_hid_dev_kbd_t *kbd_dev) 301 301 { … … 363 363 return EOK; 364 364 } 365 #endif 365 366 366 static usb_hid_dev_kbd_t *usbkbd_init_device(device_t *dev) 367 367 { … … 404 404 */ 405 405 406 407 406 // 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); 411 408 412 409 … … 470 467 471 468 while (true) { 472 async_usleep(1000 * 10 );469 async_usleep(1000 * 1000 * 2); 473 470 474 471 sess_rc = usb_endpoint_pipe_start_session(&kbd_dev->poll_pipe);
Note:
See TracChangeset
for help on using the changeset viewer.