From e636db713f01dc891b689a92b8a1cd4c22e3c491 Mon Sep 17 00:00:00 2001 From: EmergReanimator Date: Mon, 4 Oct 2021 10:57:39 +0200 Subject: [PATCH] Lose dependency to USB via CIRCUITPY_USB define for atmel port. --- ports/atmel-samd/common-hal/microcontroller/Pin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ports/atmel-samd/common-hal/microcontroller/Pin.c b/ports/atmel-samd/common-hal/microcontroller/Pin.c index 41cfff763e..1460ece59e 100644 --- a/ports/atmel-samd/common-hal/microcontroller/Pin.c +++ b/ports/atmel-samd/common-hal/microcontroller/Pin.c @@ -52,7 +52,9 @@ void reset_all_pins(void) { uint32_t pin_mask[PORT_COUNT] = PORT_OUT_IMPLEMENTED; // Do not full reset USB lines. + #if CIRCUITPY_USB pin_mask[0] &= ~(PORT_PA24 | PORT_PA25); + #endif // Do not reset SWD when a debugger is present. if (DSU->STATUSB.bit.DBGPRES == 1) {