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
path: root/src
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2017-01-26 16:32:58 +0300
committerDavid Crocker <dcrocker@eschertech.com>2017-01-26 16:32:58 +0300
commit0bef35d58f5350b449ad5a216a81dc83e0088186 (patch)
tree956b2d6a7abda19dcb0b7de28357e8f938db8013 /src
parentaf25fb286e90bea499ec1485af21e483ef5a3ea1 (diff)
Added Duet 085 and RADDS builds of version 1.17c
Also corrected compiler settings for Duet 085 and RADDS builds
Diffstat (limited to 'src')
-rw-r--r--src/Platform.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Platform.cpp b/src/Platform.cpp
index 79252b91..7199ff04 100644
--- a/src/Platform.cpp
+++ b/src/Platform.cpp
@@ -114,6 +114,10 @@ void setup()
// When doing a software reset, we disable the NRST input (User reset) to prevent the negative-going pulse that gets generated on it
// being held in the capacitor and changing the reset reason form Software to User. So enable it again here. We hope that the reset signal
// will have gone away by now.
+#ifndef RSTC_MR_KEY_PASSWD
+// Definition of RSTC_MR_KEY_PASSWD is missing in the SAM3X ASF files
+# define RSTC_MR_KEY_PASSWD (0xA5u << 24)
+#endif
RSTC->RSTC_MR = RSTC_MR_KEY_PASSWD | RSTC_MR_URSTEN; // ignore any signal on the NRST pin for now so that the reset reason will show as Software
// Go on and do the main initialisation