Merge pull request #5427 from EmergReanimator/main

Lose dependency to USB via CIRCUITPY_USB define for atmel port.
This commit is contained in:
microDev 2021-10-04 16:37:01 +05:30 committed by GitHub
commit e8f21f012c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {