From e0f931afd3268229a291c5c8a2bef12bde697da3 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Fri, 12 May 2017 16:09:13 -0700 Subject: atmel-samd: Fix pin reset to ensure USB and SWD are not reset. --- atmel-samd/common-hal/microcontroller/Pin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atmel-samd/common-hal/microcontroller/Pin.c b/atmel-samd/common-hal/microcontroller/Pin.c index 56d8f8839..37ccb4f9d 100644 --- a/atmel-samd/common-hal/microcontroller/Pin.c +++ b/atmel-samd/common-hal/microcontroller/Pin.c @@ -50,7 +50,7 @@ void reset_all_pins(void) { uint32_t pin_mask[2] = PORT_OUT_IMPLEMENTED; // Do not full reset USB or SWD lines. - pin_mask[0] &= ~(PIN_PA24 | PIN_PA25 | PIN_PA30 | PIN_PA31); + pin_mask[0] &= ~(PORT_PA24 | PORT_PA25 | PORT_PA30 | PORT_PA31); system_pinmux_group_set_config(&(PORT->Group[0]), pin_mask[0] & ~MICROPY_PORT_A, &config); system_pinmux_group_set_config(&(PORT->Group[1]), pin_mask[1] & ~MICROPY_PORT_B, &config); -- cgit v1.2.3