Skip to content

Commit e0f931a

Browse files
committed
atmel-samd: Fix pin reset to ensure USB and SWD are not reset.
1 parent e1a6f6d commit e0f931a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • atmel-samd/common-hal/microcontroller

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void reset_all_pins(void) {
5050
uint32_t pin_mask[2] = PORT_OUT_IMPLEMENTED;
5151

5252
// Do not full reset USB or SWD lines.
53-
pin_mask[0] &= ~(PIN_PA24 | PIN_PA25 | PIN_PA30 | PIN_PA31);
53+
pin_mask[0] &= ~(PORT_PA24 | PORT_PA25 | PORT_PA30 | PORT_PA31);
5454

5555
system_pinmux_group_set_config(&(PORT->Group[0]), pin_mask[0] & ~MICROPY_PORT_A, &config);
5656
system_pinmux_group_set_config(&(PORT->Group[1]), pin_mask[1] & ~MICROPY_PORT_B, &config);

0 commit comments

Comments
 (0)