hathach
|
89f8d0cffb
|
add tuh_address_set() API
minor rename and move code around
|
2025-04-24 10:41:00 +07:00 |
|
hathach
|
a2da575793
|
rename and expose tuh_bus_info_get() to application
|
2025-04-23 16:03:40 +07:00 |
|
hathach
|
65e01fff2e
|
add tuh_edpt_close() API, it will abort any pending transfer
implement hcd_edpt_close() for pio-usb and max3421e, also move max3421e api into its own header.
|
2025-03-25 16:15:58 +07:00 |
|
hathach
|
9f541a3d96
|
host: add tuh_enum_descriptor_device_cb() and tuh_enum_descriptor_configuration_cb() callback
host: support device with multiple configurations
|
2025-03-24 22:55:04 +07:00 |
|
hathach
|
e54753814b
|
enable hil dual for metro m4 with max3421
|
2025-03-21 00:11:18 +07:00 |
|
hathach
|
8c0c21189c
|
Merge branch 'master' into fork/atoktoto/midihost
# Conflicts:
# src/host/usbh.c
|
2025-03-05 18:25:31 +07:00 |
|
hathach
|
5f447b76ad
|
- add tuh_descriptor_get_string_langid() API
- host enumeration always get language id, manufacturer, product and serial string. Which is required by some device such as 8bitdo
|
2025-03-03 23:22:23 +07:00 |
|
hathach
|
6ebd362cfd
|
Merge branch 'master' into fork/atoktoto/midihost
# Conflicts:
# src/host/usbh.c
|
2025-02-21 10:59:40 +07:00 |
|
hathach
|
792a446405
|
usbh always retry control transfer (max 3) in case of XFER_RESULT_FAILED.
added tuh_connected()
|
2025-02-17 22:40:19 +07:00 |
|
hathach
|
bad6cbe489
|
update midi host to use endpoint stream API
|
2025-02-13 15:54:31 +07:00 |
|
hathach
|
e0b192b633
|
- use CFG_TUH_MIDI as number of midi host instance
- comment out tuh_descriptor_device_cb/tuh_desc_configuration_cb since it is unrelated to this PR
|
2025-02-12 22:16:08 +07:00 |
|
hathach
|
87adc63226
|
Merge branch 'master' into fork/atoktoto/midihost
# Conflicts:
# hw/bsp/rp2040/family.cmake
# src/class/midi/midi.h
# src/class/midi/midi_device.c
# src/device/usbd_control.c
# src/host/hcd.h
# src/host/usbh.c
# src/host/usbh.h
|
2025-02-12 11:28:16 +07:00 |
|
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 |
|
Andrzej Tokarski
|
b41f5eadb3
|
Merge branch 'master' into midihost
|
2022-11-21 21:45:10 +01:00 |
|
hathach
|
460bef9dbb
|
host msc example work well with rp2040 pio-usb
|
2022-11-21 15:49:38 +07:00 |
|
rppicomidi
|
70eefcb849
|
Add hooks to allow cloning an attached USB device descriptor
|
2022-11-13 14:29:16 +01: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 |
|