|
@ -1126,6 +1126,7 @@ void setup() { |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if HAS_FREEZE_PIN |
|
|
#if HAS_FREEZE_PIN |
|
|
|
|
|
SETUP_LOG("FREEZE_PIN"); |
|
|
SET_INPUT_PULLUP(FREEZE_PIN); |
|
|
SET_INPUT_PULLUP(FREEZE_PIN); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
@ -1134,11 +1135,19 @@ void setup() { |
|
|
OUT_WRITE(SUICIDE_PIN, !SUICIDE_PIN_INVERTING); |
|
|
OUT_WRITE(SUICIDE_PIN, !SUICIDE_PIN_INVERTING); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifdef JTAGSWD_RESET |
|
|
|
|
|
SETUP_LOG("JTAGSWD_RESET"); |
|
|
|
|
|
JTAGSWD_RESET(); |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
#if EITHER(DISABLE_DEBUG, DISABLE_JTAG) |
|
|
#if EITHER(DISABLE_DEBUG, DISABLE_JTAG) |
|
|
|
|
|
delay(10); |
|
|
// Disable any hardware debug to free up pins for IO
|
|
|
// Disable any hardware debug to free up pins for IO
|
|
|
#if ENABLED(DISABLE_DEBUG) && defined(JTAGSWD_DISABLE) |
|
|
#if ENABLED(DISABLE_DEBUG) && defined(JTAGSWD_DISABLE) |
|
|
|
|
|
SETUP_LOG("JTAGSWD_DISABLE"); |
|
|
JTAGSWD_DISABLE(); |
|
|
JTAGSWD_DISABLE(); |
|
|
#elif defined(JTAG_DISABLE) |
|
|
#elif defined(JTAG_DISABLE) |
|
|
|
|
|
SETUP_LOG("JTAG_DISABLE"); |
|
|
JTAG_DISABLE(); |
|
|
JTAG_DISABLE(); |
|
|
#else |
|
|
#else |
|
|
#error "DISABLE_(DEBUG|JTAG) is not supported for the selected MCU/Board." |
|
|
#error "DISABLE_(DEBUG|JTAG) is not supported for the selected MCU/Board." |
|
|