summaryrefslogtreecommitdiff
path: root/src/portable/st/stm32_fsdev/hcd_stm32_fsdev.c
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-04-10debloat the workaroundHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-04-09Polish FSDEV delay code readabilitycopilot-swe-agent[bot]
Agent-Logs-Url: https://github.com/hathach/tinyusb/sessions/3ec0d5b6-cb8e-48ff-8606-3371beb1efcb Co-authored-by: HiFiPhile <[email protected]>
2026-04-09Decouple DCON stabilize delay from BTABLE errata macrocopilot-swe-agent[bot]
Agent-Logs-Url: https://github.com/hathach/tinyusb/sessions/3ec0d5b6-cb8e-48ff-8606-3371beb1efcb Co-authored-by: HiFiPhile <[email protected]>
2026-04-09Refactor STM32 FSDEV PMA errata delay into common helpercopilot-swe-agent[bot]
Agent-Logs-Url: https://github.com/hathach/tinyusb/sessions/3ec0d5b6-cb8e-48ff-8606-3371beb1efcb Co-authored-by: HiFiPhile <[email protected]>
2026-03-18fix bugs in fsdev hcd, dcd and midi host stream writehathach
- hcd_edpt_clear_stall: use ep_addr instead of hardcoded 0 (control endpoint) - hcd: add TUP_USBIP_FSDEV_DRD define for MCUs with host support (C0, G0, H5, U3, U5) and use it in hcd compile guard instead of enumerating MCUs - dcd_edpt_close_all: use FSDEV_EP_COUNT instead of CFG_TUD_ENDPPOINT_MAX for PMA btable offset to match handle_bus_reset - midi host tuh_midi_stream_write: add missing cable_num to system messages, SysEx, and real-time MIDI packets. Add 0xF mask for SysEx CIN checks. Aligns with midi_device.c tud_midi_n_stream_write implementation. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
2026-03-16Consolidate USB FSDEV register definitions for STM32, CH32, and AT32 ↵hathach
microcontrollers. Replace vendor-specific macros with unified `U_`-prefixed equivalents, ensuring consistency and reducing duplication across all platforms.
2026-01-06hcd/stm32_fsdev: fix init after device modeHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-01-06rename FSDEV_PMA_SIZE CFG_TUSB_FSDEV_PMA_SIZEhathach
2026-01-03add default access mode for tu_hwfifo API make it easier for non-custom ↵hathach
read/write
2025-12-31replace PMA buffer packet read/write by using tu_hwfifo APIhathach
2025-12-15minor clean uphathach
2025-11-28Fix deinit glitchHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-28Use one endpoint for EP0HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-27Add max nak configZixun LI
Signed-off-by: Zixun LI <[email protected]>
2025-11-27free previously allocated OUT endpoint if IN allocation failedZixun LI
Signed-off-by: Zixun LI <[email protected]>
2025-11-27Remove redundant EP reg clearZixun LI
Signed-off-by: Zixun LI <[email protected]>
2025-11-27Add fsdev_deinitZixun LI
Signed-off-by: Zixun LI <[email protected]>
2025-11-27extract core resetZixun LI
Signed-off-by: Zixun LI <[email protected]>
2025-11-26reorganize ctr_rx workaroundZixun LI
Signed-off-by: Zixun LI <[email protected]>
2025-11-25hcd/fsdev: more refactorHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-25fsdev: reorganize functionsHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-25hcd: add fsdev driverHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>