Changeset 662da50 in mainline for uspace/drv/usbhid/kbd/kbddev.c
- Timestamp:
- 2011-06-16T10:21:33Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d022500
- Parents:
- 854eddd6 (diff), bbfa425 (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/usbhid/kbd/kbddev.c
r854eddd6 r662da50 434 434 * usb_hid_parse_report(). 435 435 */ 436 static void usb_kbd_process_data(usb_hid_dev_t *hid_dev, usb_kbd_t *kbd_dev ,437 uint8_t *buffer, size_t actual_size )436 static void usb_kbd_process_data(usb_hid_dev_t *hid_dev, usb_kbd_t *kbd_dev/*, 437 uint8_t *buffer, size_t actual_size*/) 438 438 { 439 439 assert(hid_dev->report != NULL); … … 441 441 assert(kbd_dev != NULL); 442 442 443 usb_log_debug("Calling usb_hid_parse_report() with "444 "buffer %s\n", usb_debug_str_buffer(buffer, actual_size, 0));443 // usb_log_debug("Calling usb_hid_parse_report() with " 444 // "buffer %s\n", usb_debug_str_buffer(buffer, actual_size, 0)); 445 445 446 446 usb_hid_report_path_t *path = usb_hid_report_path(); 447 447 usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0); 448 448 449 uint8_t report_id;450 int rc = usb_hid_parse_report(hid_dev->report, buffer, actual_size,451 &report_id);452 453 if (rc != EOK) {454 usb_log_warning("Error in usb_hid_parse_report():"455 "%s\n", str_error(rc));456 }457 458 usb_hid_report_path_set_report_id (path, report_id);449 // uint8_t report_id; 450 // int rc = usb_hid_parse_report(hid_dev->report, buffer, actual_size, 451 // &report_id); 452 453 // if (rc != EOK) { 454 // usb_log_warning("Error in usb_hid_parse_report():" 455 // "%s\n", str_error(rc)); 456 // } 457 458 usb_hid_report_path_set_report_id (path, hid_dev->report_id); 459 459 460 460 // fill in the currently pressed keys … … 756 756 /*----------------------------------------------------------------------------*/ 757 757 758 bool usb_kbd_polling_callback(usb_hid_dev_t *hid_dev, void *data ,759 uint8_t *buffer, size_t buffer_size )760 { 761 if (hid_dev == NULL || buffer == NULL|| data == NULL) {758 bool usb_kbd_polling_callback(usb_hid_dev_t *hid_dev, void *data/*, 759 uint8_t *buffer, size_t buffer_size*/) 760 { 761 if (hid_dev == NULL/* || buffer == NULL*/ || data == NULL) { 762 762 // do not continue polling (???) 763 763 return false; … … 768 768 769 769 // TODO: add return value from this function 770 usb_kbd_process_data(hid_dev, kbd_dev , buffer, buffer_size);770 usb_kbd_process_data(hid_dev, kbd_dev/*, buffer, buffer_size*/); 771 771 772 772 return true;
Note:
See TracChangeset
for help on using the changeset viewer.