summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortswan-quasi <[email protected]>2022-10-13 11:48:30 -0400
committertswan-quasi <[email protected]>2022-10-13 11:48:30 -0400
commit2c1ff2673baaeefc6520d25e87d5ca5e6b2093db (patch)
tree708a2d7c1aa5e1352b3d692418efc7b01eece926
parent930c68278c3825bce91ef324090d25c392844558 (diff)
(void) rhport for unused parameter
-rw-r--r--src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c b/src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c
index 7220654e0..1f29abbb8 100644
--- a/src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c
+++ b/src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c
@@ -375,6 +375,8 @@ void dcd_edpt_close_all (uint8_t rhport)
void dcd_edpt_close(uint8_t rhport, uint8_t ep_addr)
{
+ (void) rhport;
+
uint8_t ep_id = ep_addr2id(ep_addr);
_dcd.ep[ep_id][0].active = _dcd.ep[ep_id][0].active = 0; // TODO proper way is to EPSKIP then wait ep[][].active then write ep[][].disable (see table 778 in LPC55S69 Use Manual)
_dcd.ep[ep_id][0].disable = _dcd.ep[ep_id][1].disable = 1;
@@ -403,8 +405,6 @@ static void prepare_ep_xfer(uint8_t rhport, uint8_t ep_id, uint16_t buf_offset,
bool dcd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t* buffer, uint16_t total_bytes)
{
- (void) rhport;
-
uint8_t const ep_id = ep_addr2id(ep_addr);
tu_memclr(&_dcd.dma[ep_id], sizeof(xfer_dma_t));