Commit Graph

9312 Commits

Author SHA1 Message Date
James Sandison
b956d10487 fix: allow FreeRTOS examples to compile 2025-06-04 13:52:35 +10:00
James Sandison
5c4b2c75d2 docs: update dwc2_info.md 2025-06-04 13:21:34 +10:00
James Sandison
efc8c08a66 chore: delete accidentally commited submodules 2025-06-04 11:42:21 +10:00
James Sandison
3cf7234d67 chore: whitespace fix 2025-06-04 11:37:45 +10:00
James Sandison
001c7e3863 doc: remove reference to stm32n657_dk board 2025-06-04 11:27:55 +10:00
James Sandison
d62a521e7c chore: add newline to EOF 2025-06-04 11:27:34 +10:00
James Sandison
56c9521abd chore: squash previous commits from other branches 2025-06-04 11:21:27 +10:00
HiFiPhile
dc0038f614 uac2: remove support fifo
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-05-29 13:56:46 +02:00
HiFiPhile
3d2b870fcb Fix wrong SysTick clock on NUCLEO-C071RB
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-05-29 13:36:34 +02:00
Andrew Leech
b6ce41188e examples/device/net_lwip_webserver: Simplify example code.
Now that tud_network_recv_renew has protections against recursion it's
safe and simpler to handle the lwip frame entirely in the same callback.
2025-05-29 09:36:38 +10:00
Andrew Leech
9021efcacb Add link state control support for ECM mode
Extends the link state control feature to CDC-ECM mode.
RNDIS mode prints state changes but doesn't send notifications
to the host yet (would require RNDIS_INDICATE_STATUS_MSG).

For ECM:
- Tracks link state and sends proper CDC notifications
- Handles notification endpoint busy conditions
- Only sends connection notification when link is actually up

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-29 09:36:38 +10:00
Andrew Leech
5de4a23abe Add USB NCM link state control support
This adds the ability to dynamically control the network link state
for NCM devices. The host OS will see the network interface as
connected/disconnected based on the link state.

New API:
- tud_network_link_state(rhport, is_up): Set link up/down state

Example updates:
- Added button control to toggle link state
- Fixed LWIP integration to properly handle link state changes
- Added printf to show correct protocol (NCM vs RNDIS/ECM)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-29 09:36:38 +10:00
Ha Thach
2a364ca272 Merge pull request #3136 from hathach/update-max32
add OPT_MCU_MAX32665
2025-05-28 16:59:52 +07:00
hathach
132c55aca0 add OPT_MCU_MAX32665 2025-05-28 08:38:26 +07:00
Ha Thach
8f077f9295 Merge pull request #3111 from hathach/ci_vbus 2025-05-23 21:50:00 +07:00
HiFiPhile
1a13bd8eba Add comment about CFG_TUD_CI_HS_VBUS_CHARGE
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-05-23 13:27:27 +02:00
Ha Thach
d3a9fee5cb Merge pull request #3130 from hathach/max3421-use-spinlock
add usbh_spin_lock/unlock() use spinlock to replace atomic flag for hcd max3421
2025-05-21 17:01:06 +07:00
hathach
a484b2e372 update bug template to include commit SHA 2025-05-21 15:59:55 +07:00
hathach
e41a63c60d add usbh_spin_lock/unlock() use spinlock instead of atomic flag for hcd max3421 2025-05-21 15:27:18 +07:00
Ha Thach
3a042b37da Merge pull request #3127 from hathach/fix/dcd_race_condition
add osal spinlock API, Fix/dcd dwc2 race condition
2025-05-21 15:15:43 +07:00
hathach
58dfc126ac remove unused dwc2_critical.h 2025-05-21 14:36:53 +07:00
hathach
5551a3e430 add usbd_spin_lock/unlock for driver usage 2025-05-21 11:41:06 +07:00
hathach
c1d23a0a92 osal_spin skipping lock/unlock when executed in isr 2025-05-21 11:19:07 +07:00
hathach
a4875fefea rename osal_critcal to osal_spinlock
add spinlock implementation for most rtos
2025-05-20 17:01:31 +07:00
hathach
bb1d348eb3 implement osal critical for none/freertos/pico-sdk 2025-05-19 22:51:40 +07:00
hathach
bffe5d97cc limit hil-hfp iar build to 4 parallel jobs 2025-05-19 20:22:29 +07:00
hathach
9aea7751f2 dwc2 only enter critical in isr with multiple core CPUs 2025-05-19 20:04:20 +07:00
hathach
72ee742761 add osal_critical API() for use with dwc2 2025-05-19 20:04:19 +07:00
Tomas Rezucha
c8baba10f9 fix(dcd): Fixed race condition on device disconnect
TinyUSB does not provide any locking means to protect the DCD variables.
This can lead to race conditions when the user is trying to submit
a transfer while the device is being disconnected. This can cause
the device to be in an inconsistent state, leading to a crash or
undefined behavior.

This commit adds a spin-lock to protect the DCD variables during
device disconnect.

Closes https://github.com/espressif/esp-idf/issues/9691
Also reported in https://github.com/espressif/esp-usb/pull/131
2025-05-19 20:04:16 +07:00
Ha Thach
5428b87948 Merge pull request #3103 from wavenumber-eng/mcxa156__sdk216
Added initial support for FRDM-MCXA156 and fixed up  a crash with FRDM-MCXN947
2025-05-16 22:32:04 +07:00
Ha Thach
3024bff12f Merge pull request #3123 from hathach/follow-up-pr3118
follow up to pr3118, interface also end with IAD. Add more checks
2025-05-16 21:10:02 +07:00
hathach
67389f37f2 follow up to pr3118, interface also end with IAD. Add more checks 2025-05-16 16:39:53 +07:00
HiFiPhile
531fb69531 Merge pull request #3118 from ZakDanger/vendor_device_fix
vendor device open fix for descriptor parsing
2025-05-16 10:25:28 +02:00
HiFiPhile
6346fbec16 Merge branch 'master' into h7rs 2025-05-15 21:40:36 +02:00
Ha Thach
9548d51c7e Merge pull request #3121 from hathach/bump-gcc14
Bump gcc14
2025-05-15 21:46:55 +07:00
hathach
38e5a67461 bump up pio-usb and codeql version 2025-05-15 10:27:00 +07:00
hathach
0ebc91ec97 update stm32wb linker to match new startup 2025-05-14 15:41:57 +07:00
hathach
fe4446090e fix dual example for rp2350 conflict printf and cdc_printf 2025-05-13 16:27:26 +07:00
hathach
ed087b9ed8 pump up pico-pio-usb and cmsis_device_wb 2025-05-13 16:13:50 +07:00
hathach
baf67539fc fix warnings, minor clean up 2025-05-13 12:16:22 +07:00
hathach
228b2dec1c bump ci to gcc 14 2025-05-12 15:40:58 +07:00
HiFiPhile
a2117d5d0f simplify vendord_open parsing loop
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-05-09 16:43:19 +02:00
ZakDanger
6b30a61bdb revert 'end fix' 2025-05-09 20:44:11 +10:00
ZakDanger
ae8c00f5d7 revert 'end fix' 2025-05-09 20:42:19 +10:00
ZakDanger
f5944d35b0 vendor device open fix for descriptor parsing 2025-05-09 18:17:07 +10:00
Ha Thach
542e5b4550 Merge pull request #3114 from hathach/fix-sigma-mouse-multiple-attach
Fix sigma mouse multiple attach
2025-05-06 21:40:23 +07:00
Moritz Scholjegerdes
95be35b587 add support for usbtmc vendor-spicific command messages 2025-05-06 16:06:10 +02:00
hathach
a05fc50461 clean up ci 2025-05-06 18:41:12 +07:00
hathach
fb2214dea6 move hil into build workflow 2025-05-06 16:30:34 +07:00
hathach
809af3e74c chore(usbh): change removing_hubs to array instead of bitmask 2025-05-06 15:58:07 +07:00