summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRafael Silva <[email protected]>2021-06-11 20:59:48 +0100
committerRafael Silva <[email protected]>2021-06-11 20:59:48 +0100
commitbcd3e31bd678053918898a29136cf787e72a534b (patch)
tree7de5819ea10ec249b9cd6c1d1398d19d45a94695 /src
parent9a03ab9dfadb4f5a93df02b76a84c44edc6fc9f4 (diff)
dcd: same70: fix unused variable warning
Signed-off-by: Rafael Silva <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/portable/microchip/same70/dcd_same70.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/portable/microchip/same70/dcd_same70.c b/src/portable/microchip/same70/dcd_same70.c
index 284010e53..d4430ce99 100644
--- a/src/portable/microchip/same70/dcd_same70.c
+++ b/src/portable/microchip/same70/dcd_same70.c
@@ -134,6 +134,7 @@ void dcd_int_disable (uint8_t rhport)
// Receive Set Address request, mcu port must also include status IN response
void dcd_set_address (uint8_t rhport, uint8_t dev_addr)
{
+ (void) dev_addr;
// DCD can only set address after status for this request is complete
// do it at dcd_edpt0_status_complete()
@@ -151,6 +152,7 @@ void dcd_remote_wakeup (uint8_t rhport)
// Connect by enabling internal pull-up resistor on D+/D-
void dcd_connect(uint8_t rhport)
{
+ (void) rhport;
uint32_t irq_state = __get_PRIMASK();
__disable_irq();
// Enable USB clock