Commit Graph

10115 Commits

Author SHA1 Message Date
a8abc31bf4 Merge branch 'master' into dwc2_deinit 2026-03-03 18:42:36 +07:00
a8a4db3721 Merge pull request #3518 from espressif/fix/dcd_esp32p4_phy
fix(dcd/dwc2): Do not modify FS PHY registers on HS PHY ESP32-P4
2026-03-02 22:20:44 +07:00
4fa4d39883 fix(dcd/dwc2): Do not modify FS PHY registers on HS PHY ESP32-P4 2026-03-02 12:29:09 +01:00
bf76bb88e0 Merge pull request #3514 from sauloverissimo/fix/midi-device-cable-demux
midi device: add cable-aware stream read (tud_midi_n_demux_stream_read)
2026-03-01 16:19:48 +01:00
22acfb6267 cleanup
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-02-27 11:53:02 +01:00
ecc0e12dd5 Merge remote-tracking branch 'tinyusb/master' into dwc2_deinit
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-02-27 11:47:58 +01:00
a3fd3071c1 Fix IAR warnings
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-02-27 11:46:54 +01:00
5095ec97d8 Add a dynamic switch example
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-02-27 11:46:54 +01:00
4d402194dc midi device: add cable-aware stream read (tud_midi_n_demux_stream_read)
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-25 12:38:44 -03:00
bd1e79bc6c Merge pull request #3513 from hathach/fix-cdch-ftdi-mulitple-channel
Fix FTDI host multi-channel loop and update documentation
2026-02-25 10:22:12 +07:00
da21dab358 fix CDC host FTDI multiple channel loop
fix typos for ftdi_process_set_config()
add J-Link GDB + RTT logging instructions
2026-02-25 10:05:22 +07:00
2e5d5665f3 Merge pull request #3509 from hathach/pr3506-followup
follow up to PR3506
2026-02-24 11:52:00 +07:00
f179b2957d refactor: streamline high-speed PHY detection and configuration in DWC2 driver 2026-02-23 21:08:06 +07:00
1eef6f4f4f refactor: improve high-speed PHY handling and FIFO configuration in DWC2 driver 2026-02-23 15:34:59 +07:00
dc072da5cc Merge pull request #3506 from Precidata/fs-host-with-hs-phy-v3
Supports full-speed host with an high-speed PHY (DWC2, v3)
2026-02-22 13:50:31 +01:00
e947af26c6 Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-22 13:33:29 +01:00
b585df168a refactor speed check
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-02-22 11:22:38 +01:00
dafb0d2bf4 check femtoPHY speed
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-02-21 17:34:11 +01:00
167a507146 fix ci
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-02-21 17:03:06 +01:00
c5ec572396 refactor config option
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-02-20 13:57:34 +01:00
7e61770971 Fix a couple indentations 2026-02-19 23:30:25 +01:00
c8265a3709 Introduce TUH_CFGID_PHY_SPEED configure option 2026-02-19 23:03:32 +01:00
db1ff5d169 Better variable/function names 2026-02-19 23:00:27 +01:00
41a00f498e Merge pull request #3502 from roma-jam-lab/dbg/nested_hubs_address_empty_warning
add(usbh.c): LOG1 debug message when no address available for hub
2026-02-15 23:34:18 +01:00
59feef3208 add(usbh.c): LOG1 debug message when no address available for hub 2026-02-14 11:52:52 +01:00
da10280611 Merge pull request #3476 from hathach/dwc2_vbus
DWC2 Vbus sensing enhancement
2026-02-13 23:46:36 +07:00
f0b44ec615 use CFG_TUD_CONFIGURE_DWC2_DEFAULT to make it easier to add more value 2026-02-13 22:29:14 +07:00
8f14cf4bfa add CFG_TUD_VBUS_SENSE, that could allow to skip tud_configure() for fixed vbus sensing
simplify dwc2_stm32_gccfg_cfg() using guid value
2026-02-13 19:45:09 +07:00
35a90f213d Merge branch 'refs/heads/master' into dwc2_vbus 2026-02-13 01:10:55 +07:00
d13284d02d Merge pull request #3497 from hathach/more-membrowse
Change membrowse target to board/target and clean up workflow
2026-02-13 00:55:35 +07:00
ace6d295a9 fix stm32u545 makefile missing hcd 2026-02-13 00:27:05 +07:00
a6d4c6d022 change membrowse target to board/target and remove redundant continue-on-error directive
fix defsym can be followed by = or ,
2026-02-12 23:59:48 +07:00
115b26a61f Merge pull request #3496 from michael-membrowse/fix_membrowse_defsym_extraction
fix ld symbols extraction
2026-02-12 22:57:50 +07:00
05cdaf0ad0 fix ld symbols extraction 2026-02-12 15:14:26 +00:00
0b8bff8a74 Merge pull request #3489 from hathach/update-memborwse-ci
Update memborwse ci
2026-02-12 14:37:30 +07:00
8a6012b009 refactor build scripts to support multiple build targets and improve argument handling 2026-02-12 13:32:00 +07:00
c59447faa8 clean up 2026-02-12 12:15:26 +07:00
a0982cd5ca Merge pull request #3471 from hathach/msc_stall
device/msc: skip command stage if EP out is stalled
2026-02-12 10:50:03 +07:00
39bc5cd933 fix ci 2026-02-12 00:31:06 +07:00
4a5077a1aa membrowse upload continue on error 2026-02-12 00:10:18 +07:00
30802a19c9 Merge remote-tracking branch 'origin/master' into msc_stall 2026-02-11 23:58:41 +07:00
8a8cea5780 Merge pull request #3493 from hathach/pr-3471-status-sent-stall
device/msc: limit EP OUT stall check to STATUS_SENT transition
2026-02-11 23:56:57 +07:00
b5c84aa140 device/msc: only defer prepare_cbw() from STATUS_SENT when EP OUT stalled 2026-02-11 23:44:39 +07:00
cec0ee53f6 make membrowse command more visible 2026-02-11 23:30:14 +07:00
2883403ed0 Merge pull request #3491 from Precidata/custom-breakpoint-function
Introduce CFG_TUSB_DEBUG_BREAKPOINT hook
2026-02-11 17:13:29 +01:00
75adb35f35 Update tusb_verify.h 2026-02-11 16:23:11 +01:00
1586e80ffe Introduce CFG_TUSB_DEBUG_BREAKPOINT hook 2026-02-11 15:25:48 +01:00
8c9901c318 correct membrowse upload step 2026-02-11 19:18:17 +07:00
9bba4373bf parse and pass linker symbol to membrowse report 2026-02-11 18:13:30 +07:00
c69e2e0a2a update membrowse target to family/board/target 2026-02-11 16:51:48 +07:00