diff options
| author | sakumisu <[email protected]> | 2024-11-24 23:04:27 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-11-24 23:04:27 +0800 |
| commit | a72ecd220251bfab290aa6bd0d74fb1adcd19425 (patch) | |
| tree | 159a35c7cb2e4ca11ba79a9806815e53a1e45aed /core | |
| parent | c6bdacee6d6009e6319de255f12c8dab9438fb6b (diff) | |
update: change memcpy to fast memcpy
Diffstat (limited to 'core')
| -rw-r--r-- | core/usbd_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/usbd_core.c b/core/usbd_core.c index 85f7b4f2..b43b5fbf 100644 --- a/core/usbd_core.c +++ b/core/usbd_core.c @@ -1177,7 +1177,7 @@ void usbd_event_ep0_setup_complete_handler(uint8_t busid, uint8_t *psetup) #ifdef CONFIG_USBDEV_EP0_INDATA_NO_COPY g_usbd_core[busid].ep0_data_buf = buf; #else - memcpy(g_usbd_core[busid].ep0_data_buf, buf, g_usbd_core[busid].ep0_data_buf_residue); + usb_memcpy(g_usbd_core[busid].ep0_data_buf, buf, g_usbd_core[busid].ep0_data_buf_residue); #endif } else { /* use memcpy(*data, xxx, len); has copied into ep0 buffer, we do nothing */ |
