summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2026-05-23 19:21:59 +0200
committerHiFiPhile <[email protected]>2026-05-23 19:21:59 +0200
commitc6beac24ca280ce13e538f0b9459553abc825571 (patch)
treef03fa948bbb38eb2e2b4dda56890c89556629a60 /src
parent08cd5c3270e79ed2e63c8941c13c84027a5c003e (diff)
dcd/ch32fs: do not set EP0 to ACK on status complete
It would casue race condition, SETUP packet is always acked. Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/portable/wch/dcd_ch32_usbfs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/portable/wch/dcd_ch32_usbfs.c b/src/portable/wch/dcd_ch32_usbfs.c
index 4ecaf129e..ca3ce7ba8 100644
--- a/src/portable/wch/dcd_ch32_usbfs.c
+++ b/src/portable/wch/dcd_ch32_usbfs.c
@@ -273,8 +273,6 @@ void dcd_edpt0_status_complete(uint8_t rhport, const tusb_control_request_t *req
request->bmRequestType_bit.type == TUSB_REQ_TYPE_STANDARD && request->bRequest == TUSB_REQ_SET_ADDRESS) {
USBOTG_FS->DEV_ADDR = (uint8_t)request->wValue;
}
- EP_TX_CTRL(0) = USBFS_EP_T_RES_NAK;
- EP_RX_CTRL(0) = USBFS_EP_R_RES_ACK;
}
bool dcd_edpt_open(uint8_t rhport, const tusb_desc_endpoint_t *desc_ep) {