summaryrefslogtreecommitdiff
path: root/src/device/usbd.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-12-10 17:01:33 +0700
committerhathach <[email protected]>2025-12-10 17:01:33 +0700
commit63dea396deaba159ecf57d34710e8fa506711944 (patch)
tree9a15f86277cbcb9076ad4353441f2773e816bb86 /src/device/usbd.c
parent69bb4e669baa8037868459788c365fa50f13bba6 (diff)
revert the usbd_edpt_xfer_fifo guard
Diffstat (limited to 'src/device/usbd.c')
-rw-r--r--src/device/usbd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 0f866e4cf..b033ac4c0 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -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) {