diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-05-12 16:09:13 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-05-12 16:09:13 -0700 |
| commit | e0f931afd3268229a291c5c8a2bef12bde697da3 (patch) | |
| tree | d4f598a1ac7e5f86e4bdc87112b2e0ab738a243a | |
| parent | e1a6f6d5841b0da2bd9289b41816fc620a91b3b7 (diff) | |
atmel-samd: Fix pin reset to ensure USB and SWD are not reset.
| -rw-r--r-- | atmel-samd/common-hal/microcontroller/Pin.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
