summaryrefslogtreecommitdiff
path: root/src/host/usbh.h
AgeCommit message (Collapse)Author
2026-07-02license: use SPDX identifiers for src/ headers (#3749)Ha Thach
* license: use SPDX identifiers for src/ headers Replace the full ~20-line MIT license boilerplate on every src/ file with a two-line SPDX tag (SPDX-FileCopyrightText + SPDX-License-Identifier), following the REUSE convention used by CircuitPython and the Linux kernel. Removes ~3500 lines of duplicated boilerplate.
2026-03-12refactor(config): separate endpoint buffer sizes into RX and TX definitions ↵hathach
for clarity and flexibility
2026-02-22Apply suggestions from code reviewZixun LI
Co-authored-by: Copilot <[email protected]>
2026-02-20refactor config optionHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-02-19Introduce TUH_CFGID_PHY_SPEED configure optionCédric Berger
2025-11-30Update noteHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-27Add max nak configZixun LI
Signed-off-by: Zixun LI <[email protected]>
2025-10-28fix Identifiers that start with '__' or '_[A-Z]' are reserved.hathach
fix compiling with nuc family
2025-09-17Update weak callbacks to new syntaxHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-06-20usbh make TU_API_SYNC() public, to implement sync() API, change return of ↵hathach
sync API from uint8_t to tusb_xfer_result_t
2025-06-18usbh: add new API tuh_descriptor_get_device_local()hathach
cdc host: remove the local desc_dev and the get_device descriptor call for ftdi and pl2303
2025-06-09Fix TUH_EPSIZE_BULK_MPS macroCédric Berger
TUH_EPSIZE_BULK_MPS should be set based on TUH_OPT_HIGH_SPEED, not TUD_OPT_HIGH_SPEED
2025-04-29define hcd_devtree_info_t forr backward compatiblehathach
2025-04-24add tuh_address_set() APIhathach
minor rename and move code around
2025-04-23rename and expose tuh_bus_info_get() to applicationhathach
2025-03-25add tuh_edpt_close() API, it will abort any pending transferhathach
implement hcd_edpt_close() for pio-usb and max3421e, also move max3421e api into its own header.
2025-03-24host: add tuh_enum_descriptor_device_cb() and ↵hathach
tuh_enum_descriptor_configuration_cb() callback host: support device with multiple configurations
2025-03-21enable hil dual for metro m4 with max3421hathach
2025-03-05Merge branch 'master' into fork/atoktoto/midihosthathach
# Conflicts: # src/host/usbh.c
2025-03-03- add tuh_descriptor_get_string_langid() APIhathach
- host enumeration always get language id, manufacturer, product and serial string. Which is required by some device such as 8bitdo
2025-02-21Merge branch 'master' into fork/atoktoto/midihosthathach
# Conflicts: # src/host/usbh.c
2025-02-17usbh always retry control transfer (max 3) in case of XFER_RESULT_FAILED.hathach
added tuh_connected()
2025-02-13update midi host to use endpoint stream APIhathach
2025-02-12- use CFG_TUH_MIDI as number of midi host instancehathach
- comment out tuh_descriptor_device_cb/tuh_desc_configuration_cb since it is unrelated to this PR
2025-02-12Merge branch 'master' into fork/atoktoto/midihosthathach
# 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
2024-11-27minor clean uphathach
2024-10-14change the tusb_rhport_init_t struct, exclude the rhport to make API more ↵hathach
consistent
2024-10-11change tusb_init(), tusb_rhport_init() to use init struct for expandabilityhathach
2024-10-10add new tusb_int_handler(rhport, in_isr) as common irq handlerhathach
update tusb_init() to take rhport and role, defined as macro with optional argument for backward compatible
2024-08-26add sndfifo owner info to skip rewriting data for retrying NAKedhathach
2024-04-08add cpuctl and pinctl to tuh_configure() option for max3421hathach
2024-04-02add hcd_configure() to change max NAK dynamicallyhathach
2024-03-22adding deinit() stub for usbh/hcd class driverhathach
add TUSB_VERSION_BUILD, also add TUSB_VERSION_NUMBER
2024-01-12- change tuh_event_hook_cb, tud_event_hook_cb to weak default implementationhathach
- change code style
2023-11-24add optional event hook callback tud_event_hook_cb() and tuh_event_hook_cb()hathach
2023-09-27change hcd_int_handler(rhport, in_isr) signature: add in_isrhathach
change tuh_int_handler() to take in_isr as optional parameter (default = true)
2023-08-07Add tuh_rhport_is_active() and tuh_rhport_reset_bus()hathach
- also improve ehci bus reset - seperate bus reset delay and contact debouncing delay in enumeration
2023-07-21implement hcd_edpt_abort_xfer() for EHCI, also move thing around a bithathach
2023-07-21add hcd_edpt_abort_xfer() APIhathach
2023-03-22add tuh_task_event_ready(), better implement blocking control transfer for rtoshathach
2023-03-21add note for blocking tuh_configuration_set(), tuh_interface_set()hathach
2023-03-21add tuh_set_interfacehathach
2023-03-17fix trailing space and new linehathach
temporarily disable codespell
2022-11-28Retry a few times with transfers in enumeration since device can be unstable ↵hathach
when starting up
2022-11-21Merge branch 'master' into midihostAndrzej Tokarski
2022-11-21host msc example work well with rp2040 pio-usbhathach
2022-11-13Add hooks to allow cloning an attached USB device descriptorrppicomidi
2022-06-24fix redundant-decls warnings by usbd/usbhhathach
2022-06-10more dynamic controller for hosthathach
2022-06-08add tuh_configure() for port/dynamic host behavior confighathach