diff options
| author | hathach <[email protected]> | 2021-06-10 17:19:21 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-06-10 17:19:21 +0700 |
| commit | c7f51cde40afbefe3f1d57b9dbdaaca0abed424e (patch) | |
| tree | 9cbc2769d32f06c189740b65f18ce55536d1fb58 /src/device/usbd.c | |
| parent | 7e6cba7359dd362548026578dd48fe1f26312db3 (diff) | |
implement usbh_edpt_busy (WIP), remove hcd_edpt_busy
Diffstat (limited to 'src/device/usbd.c')
| -rw-r--r-- | src/device/usbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index 71c5d4e6c..2935defd0 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -1248,8 +1248,8 @@ bool usbd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t // Attempt to transfer on a busy endpoint, sound like an race condition ! TU_ASSERT(_usbd_dev.ep_status[epnum][dir].busy == 0); - // Set busy first since the actual transfer can be complete before dcd_edpt_xfer() could return - // and usbd task can preempt and clear the busy + // Set busy first since the actual transfer can be complete before dcd_edpt_xfer() + // could return and USBD task can preempt and clear the busy _usbd_dev.ep_status[epnum][dir].busy = true; if ( dcd_edpt_xfer(rhport, ep_addr, buffer, total_bytes) ) |
