summaryrefslogtreecommitdiff
path: root/src/portable
AgeCommit message (Collapse)Author
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-18ch58x: code cleanup and minor fixesalt-0191
2026-03-18dcd_ch58x: fix toggle, SETUP race, and bus reset handlingalt-0191
- Switch from AUTO_TOG to manual toggle for all endpoints to fix toggle mismatch after clear-stall causing bus resets - Fix SETUP race condition: track ep0_completion_pending and setup_pending to avoid arming stale EP0 transfers - Defer Set Address to ISR after status ZLP is ACK'd - Improve bus reset: reset all EPs, clear pending state - Fix EP4 DMA macro to correctly map to EP0 base (0x10) - Move CH58X_UIS_TOG_OK to common section (used by both DCD/HCD) - Add #ifndef guards for BOARD_TUD/TUH_RHPORT in board.h - Track isochronous per direction: isochronous[ep][dir] - NAK EP0 OUT on completion to prevent premature data acceptance
2026-03-18ch58x: fix build flags and driver bugsalt-0191
2026-03-18add WCH CH58x (CH582/CH583) BSP and USB FS device/host driveralt-0191
2026-03-18fix hid_generic_inout for TUD_ENDPOINT_ONE_DIRECTION_ONLY MCUshathach
Use separate endpoint numbers (EP1 OUT, EP2 IN) on MCUs with shared FIFO that cannot support the same endpoint number in both directions. Also add missing static qualifier to print_musb_info(). Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
2026-03-16clean up fsdev symbolshathach
2026-03-16Unify USB FSDEV driver implementation for various microcontrollers. Replace ↵hathach
`FSDEV_BUS_32BIT` with `CFG_TUSB_FSDEV_32BIT`, adjust data/address stride macros, and refactor register/PMU access for consistency across platforms.
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-03-10Merge pull request #3530 from hathach/hcd_ip3516Ha Thach
Add IP3516 HCD support
2026-03-10fix typohathach
2026-03-07Fix ep_ctrl_mask() corrupting opposite direction's ENDPTCTRL bitsgab-k
2026-03-07remove dma_desc_thathach
2026-03-06Merge remote-tracking branch 'tinyusb/master' into hcd_ip3516HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-03-06Apply suggestions from code reviewZixun LI
Co-authored-by: Copilot <[email protected]>
2026-03-06Merge remote-tracking branch 'tinyusb/master' into samx7x_updateHiFiPhile
2026-03-06cleanupHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-03-06Merge pull request #3528 from hathach/improve-iar-warningsHa Thach
Add IAR warning flags to CMake build and resolve warnings
2026-03-06fix warningshathach
2026-03-05update PORTSC1Zixun LI
Signed-off-by: Zixun LI <[email protected]>
2026-03-05ci_hs: add deinit supportZixun LI
Signed-off-by: Zixun LI <[email protected]>
2026-03-05add hs_phy_type parameter to dwc2_phy_deinit for selective PHY ↵hathach
deinitialization across all MCUs
2026-03-04Merge branch 'master' into dwc2_deinithathach
2026-03-04add PHY deinitialization support for DWC2 driver across all MCUshathach
2026-03-04Merge pull request #3490 from Precidata/non-blocking-host-v2Ha Thach
Fully asynchrounous host code (v2)
2026-03-03Merge branch 'master' into dwc2_deinithathach
2026-03-02fix(dcd/dwc2): Do not modify FS PHY registers on HS PHY ESP32-P4Tomas Rezucha
2026-02-28replace board_millis() with tusb_time_millis_api()hathach
2026-02-27cleanupHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-02-27Merge remote-tracking branch 'tinyusb/master' into dwc2_deinitHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-02-27dcd/samx7x: reformat codeHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-02-27dcd/samx7x: remove buggy DMA FIFO transferHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-02-27dcd/samx7x: synchronize DMA and cache optionsHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-02-23refactor: streamline high-speed PHY detection and configuration in DWC2 driverhathach
2026-02-23refactor: improve high-speed PHY handling and FIFO configuration in DWC2 driverhathach
2026-02-22Apply suggestions from code reviewZixun LI
Co-authored-by: Copilot <[email protected]>
2026-02-22refactor speed checkHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-02-21check femtoPHY speedHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-02-21fix ciHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-02-20refactor config optionHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-02-19Fix a couple indentationsCédric Berger
2026-02-19Introduce TUH_CFGID_PHY_SPEED configure optionCédric Berger
2026-02-19Better variable/function namesCédric Berger
2026-02-13use CFG_TUD_CONFIGURE_DWC2_DEFAULT to make it easier to add more valuehathach
2026-02-13add CFG_TUD_VBUS_SENSE, that could allow to skip tud_configure() for fixed ↵hathach
vbus sensing simplify dwc2_stm32_gccfg_cfg() using guid value
2026-02-13Merge branch 'refs/heads/master' into dwc2_vbushathach
2026-02-06adjust handle_xfer_in logic to simplify ZLP handlinghathach
2026-02-06Merge branch 'refs/heads/master' into musb_fixhathach
2026-02-05reverse pma size check to reduce duplicationhathach
2026-01-31dwc2: add stm32n6 DMA regionsHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>