diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-01-22 01:06:36 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-01-22 01:06:36 +0300 |
commit | cdb1728cef3b1a1e618fe81be3768a2d3d748795 (patch) | |
tree | 7fc74c23707f5fad628486978c6e5543c080b01c /src/Hardware | |
parent | 6ac8f4b9209491d8444429c6a56cbc4e992c361a (diff) |
Fixes for MB6XD
Diffstat (limited to 'src/Hardware')
-rw-r--r-- | src/Hardware/SAME70/Devices.cpp | 10 |
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 |