Changeset a8def7d in mainline
- Timestamp:
- 2011-03-10T19:26:16Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6e3b9a58, 9d9ffdd
- Parents:
- e69f10b
- Location:
- uspace/drv/usbhid
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/kbddev.c
re69f10b ra8def7d 459 459 usbhid_kbd_push_ev(kbd_dev, KEY_PRESS, key); 460 460 usbhid_kbd_repeat_start(kbd_dev, key); 461 } else { size_t461 } else { 462 462 // found, nothing happens 463 463 } … … 502 502 503 503 usb_log_debug("Got keys from parser: %s\n", 504 usb_debug_str_buffer(key_codes, kbd_dev->key_count, 0));504 usb_debug_str_buffer(key_codes, count, 0)); 505 505 506 506 if (count != kbd_dev->key_count) { … … 535 535 uint8_t *buffer, size_t actual_size) 536 536 { 537 assert(kbd_dev->initialized); 538 assert(kbd_dev->hid_dev->parser != NULL); 539 537 540 usb_hid_report_in_callbacks_t *callbacks = 538 541 (usb_hid_report_in_callbacks_t *)malloc( … … 617 620 } 618 621 619 usb_hid_free_report_parser((*kbd_dev)->parser);620 621 622 free(*kbd_dev); 622 623 *kbd_dev = NULL; -
uspace/drv/usbhid/kbddev.h
re69f10b ra8def7d 100 100 /** Mutex for accessing the information about auto-repeat. */ 101 101 fibril_mutex_t *repeat_mtx; 102 103 usb_hid_report_parser_t *parser;104 102 105 103 /** State of the structure (for checking before use). */
Note:
See TracChangeset
for help on using the changeset viewer.