summaryrefslogtreecommitdiff
path: root/src/host
AgeCommit message (Collapse)Author
2023-06-07able to response with good crchathach
2023-06-01Fix diagnostic format string (missing %u)Dave Nadler
2023-05-29slightly clean uphathach
2023-05-29check status_change is not zero firsthathach
2023-05-29Even when we get an empty "status change" interrupt from the hub, schedule ↵Ivo Popov
another interrupt poll. During enumeration, when there are multiple devices attached to the hub as it's plugged into the Pi Pico, enumeration hangs, because we get a "status change" callback with value zero. With this patch, we retry several times on "zero" status change callbacks, until eventually we succeed. This is the cheapo hub that exhibits this behavior, but I assume it's not the only one: https://www.amazon.com/gp/product/B083RQMC7S. While debugging this, I consulted the implementation in the Linux kernel. There, hub setup explicitly checks each port individually, before starting to depend on "status change" interrupts: https://elixir.bootlin.com/linux/latest/source/drivers/usb/core/hub.c#L1133. We probably should do something like that here, but it's a much bigger change.
2023-05-19ehci fix dcache clean when control endpoint failedhathach
2023-05-18EHCI more improvementhathach
- more dcache clean/invalidate - extract init_periodic_list() - improve isr list handling
2023-05-18EHCI adding dcahe support, passing enumertaionhathach
2023-05-17adding hcd_dcache_clean/hcd_dcache_invalidatehathach
2023-05-16add various check for disconncted device, also fix #1511 un-roll recursive ↵hathach
hub removal with usbh queue
2023-05-16EHCI: fix xfer failed with disconnected device as stalledhathach
- change CFG_TUH_ENDPOINT_MAX to 16 (max endpoint pair per device) if not defined - change QHD_MAX for EHCI, should be user configurable and more optimized in the future
2023-05-16correct EHCI reporting failed xfer (instead of stalled) when device is unpluggedhathach
2023-04-28improve host serial drivershathach
- tuh_control_xfer() update xfer result to user_data if complete callback = NULL (sync/blocking) - refactor host serial driver for acm/ftdi/cp210x
2023-04-26hacky, but ftdi work with hard code baudrate = 9600hathach
2023-03-24separate CFG_TUSB_MEM_SECTION and CFG_TUSB_MEM_ALIGN tohathach
- CFG_TUD_MEM_SECTION and CFG_TUD_MEM_ALIGN - CFG_TUH_MEM_SECTION and CFG_TUH_MEM_ALIGN - fix missing mem section and align for host
2023-03-22add tuh_task_event_ready(), better implement blocking control transfer for rtoshathach
2023-03-21add osal_task_delay() for control blockinghathach
2023-03-21add note for blocking tuh_configuration_set(), tuh_interface_set()hathach
2023-03-21add tuh_set_interfacehathach
2023-03-17Merge branch 'master' into portabilityhathach
2023-03-17fix trailing space and new linehathach
temporarily disable codespell
2023-03-17minor refactor to invalid indexhathach
2023-03-17fix enumerate one device at a timehathach
2023-02-22move and add optional tusb_app_virt_to_phys/tusb_app_phys_to_virthathach
also add place holder for tusb_app_dcache_flush() and tusb_app_dcache_invalidate()
2023-01-31fix host issue when mounting an CDC device without IADhathach
2023-01-03Fix typo in audio.h. Specifiy _ctrl_xfer struct in CFG_TUSB_MEM_SECTIONpete-pjb
Add NULL check to loop in list_remove_qhd_by_addr() function in ehci.c
2022-12-22correct host cdc enumhathach
2022-12-22moving edpt_stream API into common tusb.chathach
2022-12-21minor debug loghathach
2022-12-21rename TU_LOG_VAR to TU_LOG_PTR, print out setup of failed control transfer ↵hathach
when LOG=1
2022-12-16correct cdc usbh_driver_set_config_complete()hathach
2022-12-16add common EPSIZE for bulk/iso in full and highspeedhathach
adding cdc host fifo tx/rx
2022-12-16cdc check for bNumEndpoints before checking for endpoint descriptorhathach
2022-12-16fix ci with usbh and unit testhathach
2022-12-15use OSAL_MUTEX_REQUIRED to replace CFG_FIFO_MUTEX/TUSB_OPT_MUTEXhathach
add macro to swallow mutex API in order to simplify code with mutex
2022-12-04Fix typosBastien Nocera
2022-11-28increase delay between attempts to 100mshathach
2022-11-28Retry a few times with transfers in enumeration since device can be unstable ↵hathach
when starting up
2022-11-21host msc example work well with rp2040 pio-usbhathach
2022-09-13IAR doesn't support __attribute__((fallthrough))Ben Avison
IAR generates warning Pa167 'the "fallthrough" attribute is not supported'. It doesn't generate warnings when one switch case falls through to another, so simply make TU_ATTR_FALLTHROUGH expand to an empty string. Also replace one instance of __attribute__ with the macro.
2022-09-13Don't assume ints automatically convert to enumsBen Avison
IAR generates warning Pe188 'enumerated type mixed with another type'.
2022-08-16Hub: Clear other port feature changesRyzee119
2022-08-16Hub: Handle hub device status change interruptRyzee119
2022-08-15Hub: Rename port status callback to be more genericRyzee119
2022-08-15Hub: Expand hub helpers to handle device eventsRyzee119
2022-07-14abtract attribute fallthroughhathach
2022-07-12disable bad gcc 6 warninggraham sanderson
2022-07-12fix incorrect null-dereference warnings when compiling with gcc7hathach
2022-06-27fix all warnings with host rp2040hathach
2022-06-24fix redundant-decls warnings by usbd/usbhhathach