summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2026-03-02fix(dcd/dwc2): Do not modify FS PHY registers on HS PHY ESP32-P4Tomas Rezucha
2026-03-01Merge pull request #3514 from sauloverissimo/fix/midi-device-cable-demuxZixun LI
midi device: add cable-aware stream read (tud_midi_n_demux_stream_read)
2026-02-25midi device: add cable-aware stream read (tud_midi_n_demux_stream_read)Saulo Veríssimo
The existing tud_midi_n_stream_read() accepts a cable_num parameter but ignores it — all cables share a single FIFO and stream parser state, so data from different virtual cables is silently mixed together. Add tud_midi_n_demux_stream_read() which returns the cable number of the data that was actually read. It peeks at each USB-MIDI event packet header before consuming it and stops when the next packet belongs to a different cable, allowing callers to dispatch per-cable without losing data. Implementation details: - Mirrors the host-side tuh_midi_stream_read() approach: tu_edpt_stream_peek for cable inspection, CIN-based byte count (USB MIDI 1.0 Table 4-1), leftover handling via existing midi_driver_stream_t - *p_cable_num initialized to 0xff sentinel so callers can detect "no data" even when return value is 0 - Cable-change check (total_read > 0 guard) covers both leftover-originated reads and freshly consumed packets - TU_VERIFY uses explicit != NULL comparisons, consistent with codebase style - Note: shares stream->buffer with tud_midi_n_stream_read(); do not mix calls on the same interface - Adds single-interface convenience wrapper tud_midi_demux_stream_read() Closes #1838
2026-02-25fix CDC host FTDI multiple channel loophathach
fix typos for ftdi_process_set_config() add J-Link GDB + RTT logging instructions
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-14add(usbh.c): LOG1 debug message when no address available for hubRoman Leonov
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-11Merge remote-tracking branch 'origin/master' into msc_stallhathach
2026-02-11device/msc: only defer prepare_cbw() from STATUS_SENT when EP OUT stalledhathach
2026-02-11Update tusb_verify.hCédric Berger
2026-02-11Introduce CFG_TUSB_DEBUG_BREAKPOINT hookCédric Berger
2026-02-07minor updatehathach
2026-02-06adjust handle_xfer_in logic to simplify ZLP handlinghathach
2026-02-06Merge branch 'refs/heads/master' into musb_fixhathach
2026-02-05Merge pull request #3472 from hathach/u0_fixHa Thach
fix stm32u0 data stride
2026-02-05reverse pma size check to reduce duplicationhathach
2026-02-03Fix DFU descriptor version from 1.0.1 (0x0101) to 1.1.0 (0x0110)copilot-swe-agent[bot]
Co-authored-by: hathach <[email protected]>
2026-02-01Actually exit the loop in addition to logging. ENOTENOUGHCOFFEECédric Berger
2026-02-01Limit events processed by tud_task_ext() / tuh_task_ext()Cédric Berger
2026-01-31dwc2: add stm32n6 DMA regionsHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-01-31dwc2: add vbus sense configHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-01-30dcd/dwc2: Fix SEDET unable to be cleared on stm32u5HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-01-26fix stm32u0 data strideZixun LI
Signed-off-by: Zixun LI <[email protected]>
2026-01-26device/msc: skip command stage if EP out is stalledZixun LI
Signed-off-by: Zixun LI <[email protected]>
2026-01-24Fix macro directive for FSDEV of CH32V20xMitsumine Suzu
2026-01-16fix stream write racingHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-01-15dcd/musb: fix zlp INHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-01-15dcd/musb: fix unaligned castHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-01-14Merge remote-tracking branch 'tinyusb/master' into bsp_h7_tm4cZixun LI
2026-01-14remove no-fifo mode in edpt stream APIhathach
update vendor_device.c for direct usbd xfer when either RX/TX BUFSIZE is 0 i.e CFG_TUD_VENDOR_TXRX_BUFFERED = 0
2026-01-14dcd/musb: fix IAR buildHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-01-14bsp: add TI EK-TM4C1294XLHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-01-13Merge pull request #3424 from hathach/fifo_read_epsizeHa Thach
limit fifo read size to ep_bufsize regardless ep_buf is used or not
2026-01-13Merge pull request #3439 from hathach/mtp_zlpHa Thach
device/mtp: queue ZLP when needed
2026-01-13minor clean uphathach
separate tud_mtp_data_send() and tud_mtp_data_receive()
2026-01-12Fix compiler warningGabriel Chouinard
2026-01-12Merge branch 'refs/heads/master' into mtp_zlphathach
2026-01-10remove transfer_type from hw_endpointhathach
2026-01-09enable dedicated hwfifo for rp2hathach