Changeset 82122f3 in mainline for uspace/drv/usbkbd/main.c
- Timestamp:
- 2010-12-17T14:51:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1f383dde
- Parents:
- 692f13e4 (diff), 11658b64 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbkbd/main.c
r692f13e4 r82122f3 40 40 #define NAME "usbkbd" 41 41 42 static const usb_endpoint_t CONTROL_EP = 0; 42 #define GUESSED_POLL_ENDPOINT 1 43 43 44 44 /* … … 130 130 131 131 // default endpoint 132 kbd_dev-> default_ep = CONTROL_EP;132 kbd_dev->poll_endpoint = GUESSED_POLL_ENDPOINT; 133 133 134 134 /* … … 178 178 usb_target_t poll_target = { 179 179 .address = kbd_dev->address, 180 .endpoint = kbd_dev-> default_ep180 .endpoint = kbd_dev->poll_endpoint 181 181 }; 182 182 183 183 while (true) { 184 async_usleep(1000 * 1000); 184 185 rc = usb_drv_async_interrupt_in(kbd_dev->device->parent_phone, 185 186 poll_target, buffer, BUFFER_SIZE, &actual_size, &handle);
Note:
See TracChangeset
for help on using the changeset viewer.