summaryrefslogtreecommitdiff
path: root/src/device/usbd.c
diff options
context:
space:
mode:
authorReinhard Panhuber <[email protected]>2021-01-18 17:14:17 +0100
committerReinhard Panhuber <[email protected]>2021-01-18 17:14:17 +0100
commit2284db1fb5d99c91b31ef7176ea04a8a01b3206a (patch)
treec5e340767e7aaa981faaf0c35f89389b4e12347f /src/device/usbd.c
parent51c80630f5c67cd2f67c2282a46520ef517f7234 (diff)
Add usbd_edpt_ISO_xfer()
Diffstat (limited to 'src/device/usbd.c')
-rw-r--r--src/device/usbd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 05acb7019..e0546ac39 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -1206,12 +1206,12 @@ bool usbd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t
}
}
-bool usbd_edpt_ISO_xfer(uint8_t rhport, uint8_t ep_addr, tu_fifo_t * ff, uint16_t total_bytes)
+bool usbd_edpt_ISO_xfer(uint8_t rhport, uint8_t ep_addr, tu_fifo_t * ff)
{
uint8_t const epnum = tu_edpt_number(ep_addr);
uint8_t const dir = tu_edpt_dir(ep_addr);
- TU_LOG2(" Queue ISO EP %02X with %u bytes ... ", ep_addr, total_bytes);
+ TU_LOG2(" Queue ISO EP %02X with %u bytes ... ", ep_addr, tu_fifo_count(ff));
// Attempt to transfer on a busy endpoint, sound like an race condition !
TU_ASSERT(_usbd_dev.ep_status[epnum][dir].busy == 0);
@@ -1220,7 +1220,7 @@ bool usbd_edpt_ISO_xfer(uint8_t rhport, uint8_t ep_addr, tu_fifo_t * ff, uint16_
// and usbd task can preempt and clear the busy
_usbd_dev.ep_status[epnum][dir].busy = true;
- if ( dcd_edpt_ISO_xfer(rhport, ep_addr, ff, total_bytes) )
+ if ( dcd_edpt_ISO_xfer(rhport, ep_addr, ff) )
{
TU_LOG2("OK\r\n");
return true;