Changeset 2899980 in mainline
- Timestamp:
- 2011-02-04T17:02:32Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 89acf204
- Parents:
- d6f78857
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/main.c
rd6f78857 r2899980 56 56 #include "layout.h" 57 57 58 #define BUFFER_SIZE 3258 #define BUFFER_SIZE 8 59 59 #define NAME "usbhid" 60 60 … … 262 262 } 263 263 264 # if 0 264 265 /* 265 266 * Kbd functions … … 297 298 return EOK; 298 299 } 299 300 300 static int usbkbd_process_descriptors(usb_hid_dev_kbd_t *kbd_dev) 301 301 { … … 363 363 return EOK; 364 364 } 365 365 #endif 366 366 static usb_hid_dev_kbd_t *usbkbd_init_device(device_t *dev) 367 367 { … … 404 404 */ 405 405 406 406 407 // 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); 408 411 409 412 … … 467 470 468 471 while (true) { 469 async_usleep(1000 * 10 00 * 2);472 async_usleep(1000 * 10); 470 473 471 474 sess_rc = usb_endpoint_pipe_start_session(&kbd_dev->poll_pipe);
Note:
See TracChangeset
for help on using the changeset viewer.