summaryrefslogtreecommitdiff
path: root/src/portable/analog
AgeCommit message (Collapse)Author
2026-07-03Merge pull request #3748 from mikeysklar/fix-max3421-oscok-hangHa Thach
max3421: prevent USB host hang at startup
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-07-01hcd(max3421): improve CHIPRES reset logic and refine oscillator ↵hathach
stabilization timing
2026-07-01max3421: prevent USB host hang at startupMikey Sklar
On some boards the MAX3421E doesn't report its oscillator ready after a soft reset (CHIPRES), so hcd_init() waits on USBIRQ_OSCOK forever and the host hangs at startup before any USB device can be used. Bound the wait so it proceeds after a timeout; it is a no-op where OSCOK arrives normally. Needed on the Adafruit Feather ESP32 V2 (classic ESP32) + USB Host FeatherWing, which otherwise hangs on essentially every cold boot. Relates to adafruit/circuitpython#10053.
2025-05-21add usbh_spin_lock/unlock() use spinlock instead of atomic flag for hcd max3421hathach
2025-04-03fix(hcd) hcd_edpt_open() return true if endpoint is already opened.hathach
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.
2024-10-14change the tusb_rhport_init_t struct, exclude the rhport to make API more ↵hathach
consistent
2024-10-11hcd_init() take init structhathach
2024-08-26add sndfifo owner info to skip rewriting data for retrying NAKedhathach
2024-08-23only check SNDBAV IRQ if there is data to sendCumhur Onat
2024-08-23fix for out retry attempts with nak responseCumhur Onat
2024-05-15implement max3421e hcd_edpt_abort_xfer()hathach
2024-04-26- add esp32 c3, c6 mcu optionhathach
- skip breakpoint for espressif riscv
2024-04-25adding support for esp32 for use with max3421e hosthathach
2024-04-08add cpuctl and pinctl to tuh_configure() option for max3421hathach
2024-04-04fix build with gcc 11hathach
2024-04-04fix build with rp2040 + max3421hathach
- forward MAX3421_HOST=1 from makefile to cmake - add feather_rp2040_max3421 board to run with ci for rp2040 + max3421
2024-04-02check cfg_param pointerHa Thach
2024-04-02correct max nakHa Thach
2024-04-02max3421 limit max nakHa Thach
2024-04-02clean uphathach
2024-04-02add hcd_configure() to change max NAK dynamicallyhathach
2024-04-02refactor: add hxfr per endpointhathach
2024-04-02always limit number of NAK per endpoint per usb frame to save cpu usage. ↵hathach
Default to 1 NAK per endpoint
2024-03-31fixed spellingIngHK
2024-03-31reactivated TU_ASSERT(_hcd_data.hirq & HIRQ_SNDBAV_IRQ,);IngHK
2024-03-31removed debug codeIngHK
2024-03-31added multiple attemp counting per frameIngHK
2024-03-31improved code readabilityIngHK
2024-03-31improved/fixed trigger 1st retryable EPIngHK
2024-03-31removed redundant return true;IngHK
2024-03-31replaced bits xfer_pending, xfer_complete and retry_pending by common 4 bits ↵IngHK
state
2024-03-31renamed define NAK_RETRY_HANDLING to CFG_TUH_MAX3421_MAX_ATTEMPS_PER_FRAME ↵IngHK
as official option
2024-03-31fixed EP0 control handlingIngHK
2024-03-31added further debug log outputsIngHK
2024-03-26draft MAX3421E NAK retry handling next frameIngHK
2024-03-26implement hcd_deinit() for max3421hathach
2023-12-26allow rp2040 to use max3421e as host controllerhathach
- fix warnings build hcd max3421 with rp2040 - add tinyusb_host_max3421 target for rp2040 cmake, -DMAX3421_HOST=1 will enable this - add max3421 driver implementation for rp2040 family - update tusb_config for host to allow easy enable host selection for rp2040 (default/pio-usb/max3421)
2023-11-29Merge pull request #2346 from IngHK/LogLineEndsHa Thach
made log line end consistent \r\n
2023-11-24made log line end consistent \r\nIngHK
2023-11-20add tuh_max3421_reg_read(), tuh_max3421_reg_read() for application usagehathach
added max3241 for feather m4 and tested
2023-11-02skip tuh_max3421_spi_cs_api() in hcd_init()hathach
only call tuh_max3421_spi_cs_api() in SPI start/end transfer since Arduino port use this to call begin/endTransaction()
2023-10-27update s3 devkitm with max3421 pin following metro s3, check max3421 version ↵hathach
to make sure it is valid
2023-10-04change tuh_max3421_spi_xfer_api() signaturehathach
tested working with sam d21 and d51, not tested with nrf52, seem not working with esp32
2023-09-28fix build with new freertos host examplehathach
2023-09-27Merge branch 'master' into add-max3421-esp32hathach
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-09-27update max3421 to have hcd_int_handler_ext()hathach
2023-09-25adding host/cdc_msc_hid_freertos examplehathach