summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZixun LI <[email protected]>2026-05-26 17:30:44 +0200
committerGitHub <[email protected]>2026-05-26 17:30:44 +0200
commit0c8499904681e565ea51192ee03b4dfa2073964d (patch)
tree248757b8f9c0cd9c80a0381bc9f2802e68045bed /src
parent7b9f6eabd8623c2bbe188c8d53072b16a087cdda (diff)
parentd63a45509fd283f5ffccc29cd8569e6efd075c59 (diff)
Merge pull request #3652 from rhgndf/fix/ch32-usbhs-issues
ch32_usbhs: fix endpoint stall length index and clear-stall response
Diffstat (limited to 'src')
-rw-r--r--src/portable/wch/dcd_ch32_usbhs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/wch/dcd_ch32_usbhs.c b/src/portable/wch/dcd_ch32_usbhs.c
index a6dd5bb79..ea3b052ad 100644
--- a/src/portable/wch/dcd_ch32_usbhs.c
+++ b/src/portable/wch/dcd_ch32_usbhs.c
@@ -354,7 +354,7 @@ void dcd_edpt_stall(uint8_t rhport, uint8_t ep_addr) {
if (dir == TUSB_DIR_OUT) {
EP_RX_CTRL(ep_num) = USBHS_EP_R_RES_STALL;
} else {
- EP_TX_LEN(0) = 0;
+ EP_TX_LEN(ep_num) = 0;
EP_TX_CTRL(ep_num) = USBHS_EP_T_RES_STALL;
}
}