Enable iso buffers per rp2040 spec

This commit is contained in:
Nicholas R Dinsmore 2021-02-17 13:22:34 -05:00
parent 1b849fc70a
commit 79b360f0a6
1 changed files with 8 additions and 0 deletions

View File

@ -154,6 +154,14 @@ void _hw_endpoint_xfer_start(struct hw_endpoint *ep, uint8_t *buffer, uint16_t t
ep->total_len = total_len;
ep->len = 0;
// FIXME: What if low speed
if(ep->transfer_type == TUSB_XFER_ISOCHRONOUS)
{
ep->transfer_size = total_len; //There is an assumption that the max buffer size of 1023 or 1024 was checked before this
}
else
{
ep->transfer_size = total_len > 64 ? 64 : total_len;
}
ep->transfer_size = total_len > 64 ? 64 : total_len;
ep->active = true;
ep->user_buf = buffer;