|
@@ -686,7 +686,16 @@ void setup() {
|
686
|
686
|
max7219.init();
|
687
|
687
|
#endif
|
688
|
688
|
|
689
|
|
- #if ENABLED(DISABLE_JTAG)
|
|
689
|
+ #if ENABLED(DISABLE_DEBUG)
|
|
690
|
+ // Disable any hardware debug to free up pins for IO
|
|
691
|
+ #ifdef JTAGSWD_DISABLE
|
|
692
|
+ JTAGSWD_DISABLE();
|
|
693
|
+ #elif defined(JTAG_DISABLE)
|
|
694
|
+ JTAG_DISABLE();
|
|
695
|
+ #else
|
|
696
|
+ #error "DISABLE_DEBUG is not supported for the selected MCU/Board"
|
|
697
|
+ #endif
|
|
698
|
+ #elif ENABLED(DISABLE_JTAG)
|
690
|
699
|
// Disable JTAG to free up pins for IO
|
691
|
700
|
#ifdef JTAG_DISABLE
|
692
|
701
|
JTAG_DISABLE();
|