Commit Graph

99 Commits

Author SHA1 Message Date
hathach
9e4b855e53 minor clean up 2024-11-27 11:35:21 +07:00
hathach
1f18be93db change the tusb_rhport_init_t struct, exclude the rhport to make API more consistent 2024-10-14 18:27:52 +07:00
hathach
92602b9de3 change tusb_init(), tusb_rhport_init() to use init struct for expandability 2024-10-11 13:41:53 +07:00
hathach
57aac432b5 add new tusb_int_handler(rhport, in_isr) as common irq handler
update tusb_init() to take rhport and role, defined as macro with optional argument for backward compatible
2024-10-10 16:28:36 +07:00
hathach
27ddf19631 add sndfifo owner info to skip rewriting data for retrying NAKed 2024-08-26 14:27:23 +07:00
hathach
cbbfbbb57e add cpuctl and pinctl to tuh_configure() option for max3421 2024-04-08 13:16:08 +07:00
hathach
7d3d60f96d add hcd_configure() to change max NAK dynamically 2024-04-02 16:38:40 +07:00
hathach
74bd264758 adding deinit() stub for usbh/hcd class driver
add TUSB_VERSION_BUILD, also add TUSB_VERSION_NUMBER
2024-03-22 11:42:33 +07:00
hathach
290f4bea91 - change tuh_event_hook_cb, tud_event_hook_cb to weak default implementation
- change code style
2024-01-12 15:47:08 +07:00
hathach
188fbd8ed9 add optional event hook callback tud_event_hook_cb() and tuh_event_hook_cb() 2023-11-24 18:21:24 +07:00
hathach
3b0ffd0f48 change hcd_int_handler(rhport, in_isr) signature: add in_isr
change tuh_int_handler() to take in_isr as optional parameter (default =
true)
2023-09-27 15:51:03 +07:00
hathach
1f95a417f2 Add tuh_rhport_is_active() and tuh_rhport_reset_bus()
- also improve ehci bus reset
- seperate bus reset delay and contact debouncing delay in enumeration
2023-08-07 20:48:07 +07:00
hathach
c122e9df73 implement hcd_edpt_abort_xfer() for EHCI, also move thing around a bit 2023-07-21 19:06:36 +07:00
hathach
1cc7c5d030 add hcd_edpt_abort_xfer() API 2023-07-21 12:43:48 +07:00
hathach
f8a5cde3c7 add tuh_task_event_ready(), better implement blocking control transfer for rtos 2023-03-22 09:23:44 +07:00
hathach
d34508a316 add note for blocking tuh_configuration_set(), tuh_interface_set() 2023-03-21 18:13:25 +07:00
hathach
e44e461ce3 add tuh_set_interface 2023-03-21 12:55:52 +07:00
hathach
3623ba1884 fix trailing space and new line
temporarily disable codespell
2023-03-17 16:12:49 +07:00
hathach
b2a3f33046 Retry a few times with transfers in enumeration since device can be unstable when starting up 2022-11-28 23:22:10 +07:00
hathach
460bef9dbb host msc example work well with rp2040 pio-usb 2022-11-21 15:49:38 +07:00
hathach
0042eccb3b fix redundant-decls warnings by usbd/usbh 2022-06-24 22:52:11 +07:00
hathach
040ef0640d more dynamic controller for host 2022-06-10 14:53:03 +07:00
hathach
8cbc34de11 add tuh_configure() for port/dynamic host behavior config 2022-06-08 01:17:01 +07:00
hathach
6a022c73db add note for tud_task() behavior in freertos example 2022-04-20 18:35:38 +07:00
hathach
b034c18077 add tud_task_ext(), tuh_task_ext() as exteneded version that take timeout and in_isr
also allow exit tud_task,tuh_task after processing all events for
running other background task for user
2022-04-20 18:29:41 +07:00
hathach
821be65b03 rename usbh_edpt_open() to tuh_edpt_open() 2022-03-19 14:59:31 +07:00
hathach
4795cca04a add parse config descriptor to example
move usbh_edpt_open() to public API, remove rhport from its signature
2022-03-19 00:43:31 +07:00
hathach
ba1185bf28 implement tuh_edpt_xfer() for non-control 2022-03-18 22:22:21 +07:00
hathach
8750e3b577 move daddr into xfer struct 2022-03-18 16:39:35 +07:00
hathach
2ff8978dde update sync API, move timeout into xfer struct
remove tuh_control_xfer_sync()
2022-03-18 13:38:30 +07:00
hathach
f89ff939d8 rename user_arg to user_data 2022-03-17 22:37:51 +07:00
hathach
9dd2f11f4a add CFG_TUH_API_EDPT_XFER to enable generic edpt xfer 2022-03-17 21:20:20 +07:00
hathach
55428d7dd2 rename tuh_control_xfer_t to tuh_xfer_t 2022-03-17 20:52:16 +07:00
hathach
102b99a0e8 add actual_len supported 2022-03-17 20:48:32 +07:00
hathach
8aedb2ff37 slightly change the signature of tuh_control_xfer 2022-03-17 17:25:53 +07:00
hathach
66942b814b change return type of callback to void 2022-03-17 16:55:29 +07:00
hathach
deab8c276a remove const in xfer callback 2022-03-17 16:53:54 +07:00
hathach
6df420f7f3 move result into transfer struct 2022-03-17 16:24:43 +07:00
hathach
68bfd048a5 change tuh_control_xfer_t struct 2022-03-17 12:53:52 +07:00
hathach
fd2ea2605e fix -Wnull-dereference warnings 2022-03-16 10:55:18 +07:00
hathach
2929afe2fa add synchronous (blocking) support for usbh control transfer
- add synchronous version of all get descriptor API
- update bare example to use sync API for string descriptor
- change order of index, language_id in tuh_descriptor_get_string() to
match similar API of libusb
- add index to tuh_descriptor_get_hid_report()
2022-03-13 17:45:46 +07:00
hathach
bcdeb386cc rework usbh control xfer
- change API of tuh_control_xfer and its callback
- rename tuh_control_complete_cb_t to tuh_control_xfer_cb_t
- add user argument to control callback
- migrate usbh and hub
2022-03-11 21:57:55 +07:00
hathach
66c933fb61 fix enumeration issue when plugging hub with multiple devices attached 2022-03-10 23:16:59 +07:00
hathach
f920e1c171 rename host descriptor function 2022-03-09 11:21:13 +07:00
hathach
db9d97c947 add tuh_descriptor_hid_report_get() 2022-03-09 11:03:29 +07:00
hathach
56c2d4b666 fix naming, and build 2022-03-04 22:31:48 +07:00
hathach
271f905521 add tuh_descriptor_string_manufacturer/produce/serial_get 2022-03-04 22:23:56 +07:00
hathach
15ced09bb2 add tuh_configuration_set() 2022-03-04 21:41:27 +07:00
hathach
2bdf4d811a add tuh_descriptor_configuration_get() 2022-03-04 21:14:59 +07:00
hathach
e08a875d52 add tuh_descriptor_get() and tuh_descriptor_device_get() 2022-03-04 19:26:54 +07:00