summaryrefslogtreecommitdiff
path: root/src/portable/nxp/khci
diff options
context:
space:
mode:
authorcopilot-swe-agent[bot] <[email protected]>2025-10-22 05:28:31 +0000
committercopilot-swe-agent[bot] <[email protected]>2025-10-22 05:28:31 +0000
commit31bd4fc169eb002ded3f23e8a6a0b95f3f591efb (patch)
treec252932b2762111466f217b59b45f1b416e6099b /src/portable/nxp/khci
parent3f605332d288e256fead5f7008da55221e0b336e (diff)
Add is_isr parameter to dcd_edpt_xfer and dcd_edpt_xfer_fifo
Co-authored-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src/portable/nxp/khci')
-rw-r--r--src/portable/nxp/khci/dcd_khci.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/portable/nxp/khci/dcd_khci.c b/src/portable/nxp/khci/dcd_khci.c
index 3d5e195a9..395bf0d3d 100644
--- a/src/portable/nxp/khci/dcd_khci.c
+++ b/src/portable/nxp/khci/dcd_khci.c
@@ -1,3 +1,4 @@
+
/*
* The MIT License (MIT)
*
@@ -314,7 +315,7 @@ void dcd_set_address(uint8_t rhport, uint8_t dev_addr)
{
_dcd.addr = dev_addr & 0x7F;
/* Response with status first before changing device address */
- dcd_edpt_xfer(rhport, tu_edpt_addr(0, TUSB_DIR_IN), NULL, 0);
+ dcd_edpt_xfer(rhport, tu_edpt_addr(0, TUSB_DIR_IN), NULL, 0, false);
}
void dcd_remote_wakeup(uint8_t rhport)
@@ -428,8 +429,9 @@ void dcd_edpt_close(uint8_t rhport, uint8_t ep_addr)
if (ie) NVIC_EnableIRQ(USB0_IRQn);
}
-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)
{
+ (void) is_isr;
(void) rhport;
const unsigned epn = tu_edpt_number(ep_addr);
const unsigned dir = tu_edpt_dir(ep_addr);