diff options
| author | Ha Thach <[email protected]> | 2025-11-20 14:17:13 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-11-20 14:17:13 +0700 |
| commit | 409c19364b3be723b26b013efa5ab3ec1d17435a (patch) | |
| tree | ec06dc2164823297b2be8eeb7276d054ed4cda62 /src/device/dcd.h | |
| parent | 3af1bec1a9161ee8dec29487831f7ac7ade9e189 (diff) | |
| parent | cea86617f75804ad9347c0b9686c102db555d4b7 (diff) | |
Merge pull request #3313 from hathach/copilot/fix-dcd-edpt-xfer-issue
Add is_isr parameter to dcd_edpt_xfer, dcd_edpt_xfer_fifo, usbd_edpt_xfer, and usbd_edpt_xfer_fifo functions
Diffstat (limited to 'src/device/dcd.h')
| -rw-r--r-- | src/device/dcd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index 353f836ee..8a074ab47 100644 --- a/src/device/dcd.h +++ b/src/device/dcd.h @@ -158,11 +158,11 @@ bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * desc void dcd_edpt_close_all (uint8_t rhport); // Submit a transfer, When complete dcd_event_xfer_complete() is invoked to notify the stack -bool dcd_edpt_xfer (uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t total_bytes); +bool dcd_edpt_xfer (uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t total_bytes, bool is_isr); // Submit an transfer using fifo, When complete dcd_event_xfer_complete() is invoked to notify the stack // This API is optional, may be useful for register-based for transferring data. -bool dcd_edpt_xfer_fifo (uint8_t rhport, uint8_t ep_addr, tu_fifo_t * ff, uint16_t total_bytes); +bool dcd_edpt_xfer_fifo (uint8_t rhport, uint8_t ep_addr, tu_fifo_t * ff, uint16_t total_bytes, bool is_isr); // Stall endpoint, any queuing transfer should be removed from endpoint void dcd_edpt_stall (uint8_t rhport, uint8_t ep_addr); |
