Commit Graph

10159 Commits

Author SHA1 Message Date
94baf39468 fix warnings 2026-03-06 11:26:00 +07:00
61e4b9ce3f add IAR warning flags to cmake build and fix them 2026-03-05 23:24:14 +07:00
97476872aa Merge pull request #3378 from hathach/dwc2_deinit
Add DWC2 deinit support
2026-03-05 21:47:41 +07:00
ae3864d21f Merge pull request #3423 from armusin/threadx_osal
ThreadX OSAL header
2026-03-05 21:25:58 +07:00
ce8a77083d ci: fix claude-code-review for fork PRs
Switch pull_request to pull_request_target so secrets and OIDC tokens
are available when reviewing PRs from forks. Also add pull-requests: write
permission so the action can post review comments.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-05 20:59:26 +07:00
0c7a385cf8 improve threadx support, add multi ROTS support for board_test and msc_dual_lun 2026-03-05 20:48:30 +07:00
70c93adc2f improve threadx support, add multi ROTS support for board_test and msc_dual_lun 2026-03-05 17:51:57 +07:00
0427fcfd02 Merge branch 'master' into fork/armusin/threadx_osal 2026-03-05 13:00:45 +07:00
cd7bbba1dd Merge pull request #3524 from hathach/fix-3516
Fix HSE value for STM32F411 Black Pill
2026-03-05 12:45:18 +07:00
faa89ef3b6 fix hse value for stm32f411blackpill 2026-03-05 12:13:01 +07:00
75a5bedf35 Merge branch 'master' into dwc2_deinit 2026-03-05 12:04:15 +07:00
ce8a073a31 Merge pull request #3522 from hathach/fix-ci-hil
set esp32p4 min revision to 0.1
2026-03-05 12:02:45 +07:00
07620c125b esp32p4 min rev 0.1 2026-03-05 11:33:48 +07:00
6aeb3dfb51 Merge pull request #3523 from hathach/add-claude-github-actions-1772622485004
Add Claude Code GitHub Workflow
2026-03-05 10:02:54 +07:00
1efe4cd0e8 add hs_phy_type parameter to dwc2_phy_deinit for selective PHY deinitialization across all MCUs 2026-03-05 10:01:40 +07:00
f021d5c1e1 fix trailing newline in workflow files to pass pre-commit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 18:13:51 +07:00
8479c08679 "Claude Code Review workflow" 2026-03-04 18:08:08 +07:00
80a05cfcaf "Claude PR Assistant workflow" 2026-03-04 18:08:07 +07:00
3fb668c2ac replace board_millis() with tusb_time_millis_api() in dynamic_switch example 2026-03-04 17:44:14 +07:00
2dcb1a3ee2 Merge branch 'master' into dwc2_deinit 2026-03-04 17:34:10 +07:00
30af158af9 add PHY deinitialization support for DWC2 driver across all MCUs 2026-03-04 17:30:40 +07:00
13e0b0c4f1 Merge pull request #3490 from Precidata/non-blocking-host-v2
Fully asynchrounous host code (v2)
2026-03-04 15:24:11 +07:00
a8abc31bf4 Merge branch 'master' into dwc2_deinit 2026-03-03 18:42:36 +07:00
e4950e9b69 add esptool --force for esp32p4 v0.1 2026-03-03 18:25:18 +07:00
2a27bd9db0 more call_after timeout adjustment with rtos 2026-03-02 22:32:15 +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
c0adaca3a5 fix esp32p4 utmi phy init in the new esp-idf, also update esp-idf to v5.5.3 2026-03-02 20:14:00 +07:00
d9a7d1023c improve timeout adjustment, exit tuh_task() by timeout_ms = 0 2026-03-02 20:07:16 +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
4df7ef5439 fix call_after timeout adjustment with rtos 2026-03-02 17:51:48 +07:00
0daa444a9b - rename to usbh_defer_func_ms_async()
- call after (enum non-blocking delay) also support rtos now
2026-03-02 15:05:28 +07:00
ac172f7799 fix board test without tusb_time_millis_api() 2026-03-02 11:36:47 +07: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
8444c25ab6 replace board_millis() with tusb_time_millis_api() 2026-02-28 00:01:40 +07:00
7ea02fd6c9 add osal_time_millis() to osal requirement
implement tusb_time_millis_api() with osal_time_millis() when OS is not NONE
2026-02-27 23:42:40 +07:00
8302adfab8 update h743eval board settings for tracing 2026-02-27 22:40:16 +07:00
66c4d470eb add back deferred attachment queue, retry get hub port status if reset change not set after 20ms 2026-02-27 22:39:42 +07: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
fd933642df fix fallthrough 2026-02-26 18:02:09 +07:00
abdf3452ac revert usbh dedicated queue for attached event 2026-02-26 17:35:03 +07:00
56fca0076a refactor, rename to schedule function with usbh_call_after_ms() to use with enumeration delay 2026-02-26 14:33:04 +07: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