summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Leeren <[email protected]>2023-02-04 20:39:18 +0800
committersakumisu <[email protected]>2023-02-04 22:38:57 +0800
commitb00fd55aff2f30f6499c26da172ab551158b1cbb (patch)
tree9e673cbabca2563bee59f6086e38e5c04cc95a7b
parent84dfcef639afea9f15de4ba1d408a240d26fa4b6 (diff)
Fix a bug where usb2 doesn't work for ch58x
-rw-r--r--port/ch32/usb_ch58x_dc_usbfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/port/ch32/usb_ch58x_dc_usbfs.c b/port/ch32/usb_ch58x_dc_usbfs.c
index 21436802..51888a2d 100644
--- a/port/ch32/usb_ch58x_dc_usbfs.c
+++ b/port/ch32/usb_ch58x_dc_usbfs.c
@@ -64,7 +64,7 @@
EPn_TX_LEN(epid) = len
/*!< Get epid ep rx len */
#define EPn_GET_RX_LEN(epid) \
- R8_USB_RX_LEN
+ CH58x_USBFS_DEV->USB_RX_LEN
/*!< ep nums */
#ifndef USB_NUM_BIDIR_ENDPOINTS