Commit Graph

50 Commits

Author SHA1 Message Date
hathach
ad845db6a5 improve hid parser 2021-05-22 20:54:59 +07:00
hathach
350dfb2ea3 more hid api rename 2021-05-22 18:17:32 +07:00
hathach
99add05aa7 simplify hid api
add hid set_protocol() and set_protocol_complete_cb()
2021-05-22 16:27:28 +07:00
hathach
2df5a5367f update hid host get/set protocol to match device 2021-05-18 13:12:33 +07:00
hathach
40cd3a7e20 Merge branch 'master' into host-hid 2021-05-18 13:08:30 +07:00
hathach
ffdcf9a0d0 move report_info to application
update API accordingly, update hid parser for usage, and usage_page.
2021-05-18 12:58:24 +07:00
hathach
93661042d9 more API update
- remove tuh_n_hid_n_get_report()
- usbh auto queue get report and invoke callback when received data
2021-05-18 12:58:24 +07:00
hathach
dfa8b41b96 adding hid parser 2021-05-18 12:58:24 +07:00
hathach
9ddc3bfd6d more host hid API
adding hid parser
2021-05-18 12:58:24 +07:00
hathach
641f55f1f1 remove CFG_TUH_HID_KEYBOARD and CFG_TUH_HID_MOUSE 2021-05-18 12:58:24 +07:00
hathach
cc1b83412a continue with hid host rework 2021-05-18 12:58:24 +07:00
hathach
9324fd8f2e more hid host API rework 2021-05-18 12:58:24 +07:00
hathach
b7a8b278c8 rename tuh_device_is_configured() to tuh_device_configured()
- remove tuh_device_get_state()
- more hid mouse clean up
2021-05-18 12:58:24 +07:00
hathach
69defb5edc rename and moving 2021-05-18 12:58:24 +07:00
hathach
a5cd81a226 correct hid host mount/unmount callback
rename HOST_CLASS_HID to CFG_TUH_HID
2021-05-18 12:58:24 +07:00
hathach
be165a6713 reworking host hid API 2021-05-18 12:58:24 +07:00
hathach
e83bdcdfdc reworking hid host 2021-05-18 12:58:24 +07:00
hathach
68fa17e17c more API rename 2021-05-18 12:58:24 +07:00
hathach
f1148ca5ac reworking hid host 2021-05-18 12:58:24 +07:00
hathach
98f5082191 rename var to be consistent 2021-05-18 12:58:24 +07:00
hathach
e163f85ee0 clean up, rename some HID device symbol/API
- add tud_hid_n_interface_protocol()
- rename tud_hid_n_boot_mode() to  tud_hid_n_get_protocol()
- rename tud_hid_boot_mode_cb() to tud_hid_set_protocol_cb()
- add HID_PROTOCOL_BOOT/REPORT to avoid magic number 0,1
- rename HID_PROTOCOL_NONE/KEYBOARD/MOUSE to HID_ITF_PROTOCOL_ to avoid
confusion
2021-05-18 12:32:20 +07:00
graham sanderson
e0aa405d19 RP2040 support 2021-01-19 19:52:07 -06:00
hathach
e029d6d726 added host set_config driver
to resolve control conflict with SET_CONFIGURE for class driver
- open will be called to open endpoint only
- set_config called later to initialized class driver
2020-11-01 17:46:46 +07:00
hathach
66a10ec9c8 rework usbh control transfer
use series of complete callback instead of blocking semaphore, which is
more noOS friendly. still working with hid host
2020-09-07 15:19:20 +07:00
hathach
b3e81673c0 change xfer_cb return type from void to bool 2020-09-06 12:11:07 +07:00
hathach
15ad585e67 replacing hcd_pipe_xfer by usbh_edpt_xfer 2020-09-06 11:49:00 +07:00
hathach
9531e47d10 update example to test with mouse 2020-09-05 14:59:07 +07:00
hathach
f7cf8cdf27 defer xfer_isr to xfer_cb 2020-09-05 14:41:31 +07:00
hathach
a8e538efe7 clean up 2020-09-04 01:35:32 +07:00
hathach
35aee4a6af more hid host work 2020-09-03 23:57:51 +07:00
hathach
ef651e0734 fix #449 remove obsolete pipehandle from hid host 2020-09-03 17:07:29 +07:00
hathach
58cedf4c06 usb0 host on mcb1800 work with fullspeed mode.
use usbh_edpt_open() to correctly map ep2drv[]
2020-05-19 00:55:43 +07:00
Nathan Conrad
25c1bea782 Normalize line endings 2020-01-15 14:47:43 -05:00
hathach
61ec407752 update license year to 2019 2019-05-14 11:48:05 +07:00
hathach
6135019230 clean up 2019-05-14 11:46:22 +07:00
hathach
da452d4ba6 cleanup, remove the use of _TINY_USB_SOURCE_FILE_ 2019-03-27 17:48:42 +07:00
hathach
c211ee19dd migrate license from BSD 3 clause to MIT 2019-03-20 16:11:42 +07:00
hathach
a6b9432600 clean up error enum 2018-12-13 14:57:21 +07:00
hathach
67d6d753d6 replace all hcd pipe close by hcd_device_remove 2018-12-12 00:00:33 +07:00
hathach
dbc560658a more hcd_pipe to hcd_edpt rename 2018-12-11 13:15:05 +07:00
hathach
0d04e6eb96 rename to hcd_edpt_open() 2018-12-11 13:12:21 +07:00
hathach
607658d047 rename MODE_HOST_SUPPORTED to TUSB_OPT_HOST_ENABLED 2018-12-07 23:38:52 +07:00
hathach
366ab79776 able to build host hid 2018-12-07 14:57:58 +07:00
hathach
cb8782e5f2 rename tusb_event_t to xfer_result_t 2018-11-23 15:14:47 +07:00
hathach
60d8cde695 rename CFG_TUSB_MEM_SECTION to CFG_TUSB_MEM_SECTION 2018-11-22 17:21:07 +07:00
hathach
c7340f4b0e clean up helper func 2018-10-23 12:19:32 +07:00
hathach
e07b1acbed rename VERIFY to TU_VERIFY to avoid conflict with application 2018-08-13 18:10:23 +07:00
hathach
4342325ee1 reworking device hid class driver 2018-07-23 15:25:45 +07:00
hathach
1efb552bfd add ep2drv, rename descriptor offset 2018-07-13 17:48:26 +07:00
hathach
424735d440 rename subfolder source to src 2018-06-18 14:05:24 +07:00