summaryrefslogtreecommitdiff
path: root/src
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-18Merge pull request #3557 from hathach/hil-host-cdcHa Thach
add more hil tests
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-18ch58x: fix MCU macro naming and add get_deps/boards entriesalt-0191
2026-03-18add WCH CH58x (CH582/CH583) BSP and USB FS device/host driveralt-0191
2026-03-18Update HID host to correctly handle protocol mode initialization and ↵hathach
CONFIG_GET_REPORT_DESC response
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-17CFG_TUH_HID_SET_PROTOCOL_ON_ENUM option to skip set_protocol on enum, ↵hathach
default is 1
2026-03-17fix midi host issue 3544hathach
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-13remove TUSB_MCU_VENDOR_ESPRESSIF, use ESP_PLATFORM for Espressifhathach
2026-03-13Merge branch 'master' into ncm_restarthathach
2026-03-12Merge branch 'master' into ncm_restartZixun LI
2026-03-12reset notification state to speed changeZixun LI
Signed-off-by: Zixun LI <[email protected]>
2026-03-12refactor(cdc): remove deprecated runtime CDC configuration, add backward ↵hathach
compatibility with no-op macros
2026-03-12clean uphathach
2026-03-12refactor(cdc): remove runtime CDC driver configuration in favor of ↵hathach
compile-time macros for simplicity and reduced complexity
2026-03-12correct default value for CFG_TUD_VENDOR_TX/RX_BUFSIZEhathach
2026-03-12refactor(vendor/cdc): add CFG_TUD_CDC_RX_NEED_ZLP and CFG_TUD_VENDOR_RX_NEED_ZLPhathach
2026-03-12refactor(config): separate endpoint buffer sizes into RX and TX definitions ↵hathach
for clarity and flexibility
2026-03-11rename .rx_multiple_packet_transfer to .rx_need_zlphathach
2026-03-11Merge branch 'master' into zlp-hs-on-fshathach
2026-03-11refactor(usbd): replace `_usbd_ctrl_epbuf` with `usbd_get_ctrl_buf()` for ↵hathach
cleaner abstraction and consistency across modules
2026-03-11Merge branch 'master' into ep0_directhathach
2026-03-11Merge branch 'master' into ep0_directhathach
# Conflicts: # hw/bsp/same7x/boards/same70_qmtech/board.cmake # hw/bsp/same7x/boards/same70_xplained/board.cmake # hw/bsp/same7x/family.cmake
2026-03-11Merge pull request #3545 from hathach/remove-div-tusb-fifoHa Thach
remove expensive div in HWFIFO_ADDR_NEXT_N()
2026-03-10Merge pull request #3530 from hathach/hcd_ip3516Ha Thach
Add IP3516 HCD support
2026-03-10remove expensive div in HWFIFO_ADDR_NEXT_N()hathach
2026-03-10fix typohathach
2026-03-09Merge branch 'master' of https://github.com/YixingShen/tinyusbYixingShen
2026-03-09revert _end_of_control_descriptor to Revision: ↵YixingShen
0a45308a296251e4376815b21f89f0038c75a60e
2026-03-09fix(usbh): correct memcpy usage to ensure proper alignment with `offsetof` ↵hathach
in device descriptor handling
2026-03-09refactor: add desc_device_noheader_t to simplify get device descriptor localhathach
2026-03-09usbh device descriptor validation, also check ep size > 0hathach
2026-03-09Merge pull request #3536Ha Thach
Fix ep_ctrl_mask() corrupting opposite direction's ENDPTCTRL bits
2026-03-09Merge pull request #3538 from sidcha/fix-hwfifo-PMA-pointerHa Thach
Fix hwfifo PMA pointer advance on ring buffer wrap
2026-03-09extend video control parsing to include class-specific VC endpoint descriptorhathach
2026-03-08tinyusb: fix hwfifo PMA pointer advance on ring buffer wrapSiddharth Chandrasekaran
In hwff_push_n() and hwff_pull_n(), the HWFIFO_ADDR_NEXT_N call after processing the linear part of a wrap-around read/write used the data byte count (lin_even) as the address stride increment. On STM32 FSDEV PMA, data_stride=2 and addr_stride=4, so the pointer must advance by (lin_even / data_stride) * addr_stride bytes, not lin_even bytes. Fixes: 74e59e433 ("fix hwfifo pull/push n with address stride > 0") Signed-off-by: Siddharth Chandrasekaran <[email protected]>
2026-03-07Fix ep_ctrl_mask() corrupting opposite direction's ENDPTCTRL bitsgab-k
2026-03-07Merge branch 'master' of https://github.com/YixingShen/tinyusbYixingShen
2026-03-07fixed _end_of_control_descriptor logic. wTotalLength does not include ↵YixingShen
Standard Endpoint Descriptor and Class-specific VC Interrupt Endpoint Descriptor, so fix that _end_of_control_descriptor include Standard Endpoint Descriptor and Class-specific VC Interrupt Endpoint Descriptor. It will also fix _close_vc_itf, _open_vc_itf. _find_desc_entity parsing.
2026-03-07Merge branch 'hathach:master' into master沈玴興
2026-03-07Merge pull request #3529 from hathach/mtt_hubHa Thach
Add MTT hub support
2026-03-07Merge pull request #3519 from hathach/samx7x_updateHa Thach
refresh dcd_samx7x
2026-03-07open hub mtt interface in 1 callhathach
2026-03-07remove dma_desc_thathach