hathach
5b9908a39b
update at32f405 dwc2 info and phy width selection
2025-08-07 14:20:40 +07:00
hathach
4bfba6b09a
fix rp2 iso transfer: reset state before notify stack. since new audio driver can execute xfer_is()
2025-08-05 22:05:56 +07:00
Ha Thach
a16c7a27e4
Merge pull request #3191 from hathach/at32
...
support at32 mcu (2)
2025-08-01 10:39:47 +07:00
hathach
e0f2343954
clean up
2025-07-31 23:26:27 +07:00
hathach
3682b6c663
fix pre-commit, remove svd file since they are heavy and should be in mcu/sdk instead
...
add cmake support for f403a_407 and f423
2025-07-28 22:28:22 +07:00
HiFiPhile
1d2735fb54
FIx recurrent suspend ISR.
2025-07-10 12:33:54 +07:00
hathach
e598972438
add board_vbus_set() for samd21/d51 to enable usb host vbus
...
enable host example build for samd21/d51
2025-07-09 16:01:11 +07:00
hathach
386f551899
Merge branch 'refs/heads/master' into fork/ChrisDeadman/hcd-samd-support
2025-07-09 13:07:13 +07:00
Ha Thach
9990e4bf0c
Merge pull request #2963 from HiFiPhile/stm32_cache
...
Add DWC2 cache maintenance routines for STM32
2025-07-07 22:02:30 +07:00
hathach
3eb0451879
change CFG_TUSB_MEM_DCACHE_LINE_SIZE_DEFAULT (not defined) to 1
...
use stock iar linker
2025-07-07 20:31:49 +07:00
zhiqiang
73bf9aeaa6
support at32 mcu
2025-07-07 14:13:15 +08:00
HiFiPhile
3287cfaf76
Use DMA enable for DCache condition
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-07-05 12:50:00 +02:00
hathach
6e88895dbc
always define CFG_TUH_WCH_USBIP_USBFS=1 for ch32v20x since only port1 support host mode
...
reformat hcd usbfs
add uart rx for ch32v20x bsp
2025-07-05 11:26:48 +07:00
hathach
1b5f97ff23
Merge branch 'refs/heads/master' into fork/verylowfreq/pr-ch32v-usbfs-host
2025-07-04 09:49:28 +07:00
HiFiPhile
e84efd2771
Add STM32 DWC2 cache support
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-06-13 15:21:04 +02:00
hathach
7d66a3e775
merge n6 and h7rs (same config)
2025-06-12 21:20:49 +07:00
hathach
386f33807a
Merge branch 'master' into fork/james-advatek/stm32n657nucleo
2025-06-12 11:02:54 +07:00
hathach
14124c1735
add h7rs to ci matrix
2025-06-11 19:35:20 +07:00
hathach
d3d505e8f7
Merge branch 'master' into fork/HiFiPhile/h7rs
2025-06-11 16:23:54 +07:00
James Sandison
5c4b2c75d2
docs: update dwc2_info.md
2025-06-04 13:21:34 +10:00
James Sandison
56c9521abd
chore: squash previous commits from other branches
2025-06-04 11:21:27 +10:00
Ha Thach
8f077f9295
Merge pull request #3111 from hathach/ci_vbus
2025-05-23 21:50:00 +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
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
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
HiFiPhile
6346fbec16
Merge branch 'master' into h7rs
2025-05-15 21:40:36 +02:00
HiFiPhile
6a92b8efa4
dcd/ci_hs: add vbus charge option.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-05-04 15:10:17 +02:00
hathach
fc43eeddf2
attach debouncing fixed issue with port1 highspeed on imxrt
2025-04-29 10:11:20 +07:00
hathach
2c1414b4c1
usbh: add roothub debounncing flag to ignore attach/remove event on the roothub that is currently doing debouncing delay
2025-04-28 14:59:32 +07:00
hathach
a2da575793
rename and expose tuh_bus_info_get() to application
2025-04-23 16:03:40 +07:00
hathach
741cb3cf02
rename hcd_devtree_info_t to tuh_bus_info_t, hcd_devtree_get_info to hcd_bus_info_get
...
streamline bus info to usbh_devies, also replace dev0 (renamed to dev0_bus)
2025-04-23 12:35:32 +07:00
Ha Thach
18d7a993be
Merge pull request #3075 from maximevince/dwc2-proper-attach-debouncing
...
dwc2/host: attach debouncing fixes
2025-04-21 22:46:15 +07:00
Ha Thach
56ed51c8fb
Merge pull request #3088 from HiFiPhile/intv
...
Fix 1st nak retry one frame shorter.
2025-04-21 18:31:43 +07:00
HiFiPhile
b3a9b6e37f
enable SOF interrupt only if not already enabled
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-04-19 11:43:28 +02:00
hathach
d51863d1a0
- correctly do_ping if received nyet as transfer complete e.g msc 31 byte command
...
- correctly carry out OUT transfer when PING is ack
2025-04-18 22:46:37 +07:00
HiFiPhile
4c6736c277
Merge branch 'master' into dwc2-proper-attach-debouncing
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-04-18 14:54:20 +02:00
hathach
8111e53ff0
minor rename
2025-04-18 18:21:42 +07:00
hathach
2fd0301f0e
Merge branch 'master' into fork/HiFiPhile/ping_out
...
# Conflicts:
# src/portable/synopsys/dwc2/hcd_dwc2.c
2025-04-18 17:59:38 +07:00
HiFiPhile
b7a26cc33c
Fix 1st nak retry one frame shorter.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-04-18 12:46:20 +02:00
Ha Thach
e44f556a95
Merge pull request #3072 from maximevince/dwc2-retry-in-token-immediately
...
dwc2/host: immediately retry IN token for bInterval=1
2025-04-18 17:12:07 +07:00
HiFiPhile
ee1a5dbac0
Merge pull request #3084 from joelpmichael/hcd-template-comments
...
note potential issues using ep_desc in hcd_edpt_open()
2025-04-18 11:25:59 +02:00
hathach
1b888a3311
clean up, remove halted_sof_schedule flags since channel_xfer_in_retry() is only called when channel is halted.
2025-04-18 16:17:35 +07:00
HiFiPhile
b6abc9022a
Merge remote-tracking branch 'upstream/master' into hcd-template-comments
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-04-18 11:13:15 +02:00
HiFiPhile
7134109973
Update hcd_edpt_open() note.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-04-18 11:12:14 +02:00