summaryrefslogtreecommitdiff
path: root/src/portable/mindmotion
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/mindmotion
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/mindmotion')
-rw-r--r--src/portable/mindmotion/mm32/dcd_mm32f327x_otg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/portable/mindmotion/mm32/dcd_mm32f327x_otg.c b/src/portable/mindmotion/mm32/dcd_mm32f327x_otg.c
index 1ce3da27e..5cec4defb 100644
--- a/src/portable/mindmotion/mm32/dcd_mm32f327x_otg.c
+++ b/src/portable/mindmotion/mm32/dcd_mm32f327x_otg.c
@@ -1,3 +1,4 @@
+
/*
* The MIT License (MIT)
*
@@ -282,7 +283,7 @@ void dcd_set_address(uint8_t rhport, uint8_t dev_addr)
(void) rhport;
_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);
}
#ifdef __GNUC__ // caused by extra declaration of SystemCoreClock in freeRTOSConfig.h
@@ -381,8 +382,9 @@ void dcd_edpt_close(uint8_t rhport, uint8_t ep_addr)
bd->head = 0;
}
-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;
NVIC_DisableIRQ(USB_FS_IRQn);
const unsigned epn = ep_addr & 0xFu;