summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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