Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2022-01-22 01:06:36 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-01-22 01:06:36 +0300
commitcdb1728cef3b1a1e618fe81be3768a2d3d748795 (patch)
tree7fc74c23707f5fad628486978c6e5543c080b01c /src/Hardware
parent6ac8f4b9209491d8444429c6a56cbc4e992c361a (diff)
Fixes for MB6XD
Diffstat (limited to 'src/Hardware')
-rw-r--r--src/Hardware/SAME70/Devices.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Hardware/SAME70/Devices.cpp b/src/Hardware/SAME70/Devices.cpp
index 008ac348..19f14226 100644
--- a/src/Hardware/SAME70/Devices.cpp
+++ b/src/Hardware/SAME70/Devices.cpp
@@ -78,8 +78,18 @@ void DeviceInit() noexcept
SdhcInit();
EthernetInit();
+#if defined(DUET3_MB6HC)
// Set up PB4..PB5 as normal I/O, not JTAG
matrix_set_system_io(CCFG_SYSIO_SYSIO4 | CCFG_SYSIO_SYSIO5);
+#elif defined(DUET3_MB6XD)
+# ifdef DEBUG
+ // Set up PB4..PB5 as normal I/O, not JTAG. Leave PB6/7 pins as SWD. STATUS and ACT LEDs will not work.
+ matrix_set_system_io(CCFG_SYSIO_SYSIO4 | CCFG_SYSIO_SYSIO5);
+# else
+ // Set up PB4..PB7 as normal I/O, not JTAG or SWD
+ matrix_set_system_io(CCFG_SYSIO_SYSIO4 | CCFG_SYSIO_SYSIO5 | CCFG_SYSIO_SYSIO6 | CCFG_SYSIO_SYSIO7);
+# endif
+#endif
}
void StopAnalogTask() noexcept