Skip to content

Commit e8f21f0

Browse files
authored
Merge pull request #5427 from EmergReanimator/main
Lose dependency to USB via CIRCUITPY_USB define for atmel port.
2 parents fd9c3d1 + e636db7 commit e8f21f0

File tree

1 file changed

+2
-0
lines changed
  • ports/atmel-samd/common-hal/microcontroller

1 file changed

+2
-0
lines changed

ports/atmel-samd/common-hal/microcontroller/Pin.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ void reset_all_pins(void) {
5252
uint32_t pin_mask[PORT_COUNT] = PORT_OUT_IMPLEMENTED;
5353

5454
// Do not full reset USB lines.
55+
#if CIRCUITPY_USB
5556
pin_mask[0] &= ~(PORT_PA24 | PORT_PA25);
57+
#endif
5658

5759
// Do not reset SWD when a debugger is present.
5860
if (DSU->STATUSB.bit.DBGPRES == 1) {

0 commit comments

Comments
 (0)