summaryrefslogtreecommitdiff
path: root/src/portable/microchip
diff options
context:
space:
mode:
authorMasterPhi <[email protected]>2021-07-17 14:42:23 +0200
committerMasterPhi <[email protected]>2021-07-17 14:42:23 +0200
commitbae0d3b7bbe5145017ebd08f777fe0b8063f44b7 (patch)
tree42e7d0973260f396e38087bbaf7bf5a285c70c73 /src/portable/microchip
parent7e3e41952fe4c83a182dfe39e5bab89e65120485 (diff)
Fix build error.
Diffstat (limited to 'src/portable/microchip')
-rw-r--r--src/portable/microchip/samx7x/dcd_samx7x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/microchip/samx7x/dcd_samx7x.c b/src/portable/microchip/samx7x/dcd_samx7x.c
index 2a534b95b..aa9faa5be 100644
--- a/src/portable/microchip/samx7x/dcd_samx7x.c
+++ b/src/portable/microchip/samx7x/dcd_samx7x.c
@@ -531,7 +531,7 @@ bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * ep_desc)
void dcd_edpt_close(uint8_t rhport, uint8_t ep_addr)
{
uint8_t const epnum = tu_edpt_number(ep_addr);
- uint8_t const dir = tu_edpt_dir(ep_addr);
+ (void) ep_addr;
// Disable endpoint interrupt
USBHS->USBHS_DEVIDR = 1 << (USBHS_DEVIDR_PEP_0_Pos + epnum);