diff options
| -rw-r--r-- | port/ch32/usb_dc_usbhs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/port/ch32/usb_dc_usbhs.c b/port/ch32/usb_dc_usbhs.c index 6ab8d345..359e00e6 100644 --- a/port/ch32/usb_dc_usbhs.c +++ b/port/ch32/usb_dc_usbhs.c @@ -233,6 +233,7 @@ int usbd_ep_start_read(const uint8_t ep, uint8_t *data, uint32_t data_len) if (data_len == 0) { USBHS_DEVICE->UEP0_RX_CTRL = USBHS_EP_R_RES_ACK | USBHS_EP_R_TOG_1; } else { + USBHS_DEVICE->UEP0_DMA = (uint32_t)data; USBHS_DEVICE->UEP0_RX_CTRL = USBHS_EP_R_RES_ACK | (ep0_rx_data_toggle ? USBHS_EP_R_TOG_1 : USBHS_EP_R_TOG_0); } return 0; |
