From b00fd55aff2f30f6499c26da172ab551158b1cbb Mon Sep 17 00:00:00 2001 From: Chen Leeren <1570139720@qq.com> Date: Sat, 4 Feb 2023 20:39:18 +0800 Subject: [PATCH] Fix a bug where usb2 doesn't work for ch58x --- port/ch32/usb_ch58x_dc_usbfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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