mirror of
https://github.com/hathach/tinyusb.git
synced 2026-02-05 01:05:23 +00:00
revert the usbd_edpt_xfer_fifo guard
This commit is contained in:
@ -1474,6 +1474,7 @@ bool usbd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t* buffer, uint16_t t
|
||||
// success message. If total_bytes is too big, the FIFO will copy only what is available
|
||||
// into the USB buffer!
|
||||
bool usbd_edpt_xfer_fifo(uint8_t rhport, uint8_t ep_addr, tu_fifo_t* ff, uint16_t total_bytes, bool is_isr) {
|
||||
#if CFG_TUD_EDPT_DEDICATED_HWFIFO
|
||||
rhport = _usbd_rhport;
|
||||
|
||||
uint8_t const epnum = tu_edpt_number(ep_addr);
|
||||
@ -1499,6 +1500,14 @@ bool usbd_edpt_xfer_fifo(uint8_t rhport, uint8_t ep_addr, tu_fifo_t* ff, uint16_
|
||||
TU_BREAKPOINT();
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
(void)rhport;
|
||||
(void)ep_addr;
|
||||
(void)ff;
|
||||
(void)total_bytes;
|
||||
(void)is_isr;
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool usbd_edpt_busy(uint8_t rhport, uint8_t ep_addr) {
|
||||
|
||||
Reference in New Issue
Block a user