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>2020-05-28 12:35:54 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-05-28 12:35:54 +0300
commit94a36fa9c95748323666929984972af08ab18335 (patch)
treec3b01c9bf5daa50fbe9cbf58ce2784736e00e72e /src/RepRapFirmware.h
parentabb62a3aee28addfce053d6f0d9c82d85160c595 (diff)
Added Duet5LC configuration
Diffstat (limited to 'src/RepRapFirmware.h')
-rw-r--r--src/RepRapFirmware.h37
1 files changed, 34 insertions, 3 deletions
diff --git a/src/RepRapFirmware.h b/src/RepRapFirmware.h
index 8bcfc6bc..e925ecf7 100644
--- a/src/RepRapFirmware.h
+++ b/src/RepRapFirmware.h
@@ -40,14 +40,45 @@ const char *SafeStrptime(const char *buf, const char *format, struct tm *timeptr
# undef array // needed because some files include <functional>
#endif
-#include "Core.h"
+#ifdef DUET_5LC
+# include <General/SimpleMath.h>
+//TODO need hardware-related includes here
+
+typedef uint8_t DmaChannel;
+typedef uint8_t Pin;
+constexpr Pin NoPin = 0xFF;
+
+inline constexpr Pin PortAPin(unsigned int n) noexcept { return n; }
+inline constexpr Pin PortBPin(unsigned int n) noexcept { return 32+n; }
+inline constexpr Pin PortCPin(unsigned int n) noexcept { return 64+n; }
+inline constexpr Pin PortDPin(unsigned int n) noexcept { return 96+n; }
+
+#else
+# include "Core.h"
+#endif
#ifndef SAMC21
# define SAMC21 (defined(__SAMC21G18A__) && __SAMC21G18A__)
#endif
-#ifndef SAME51
-# define SAME51 (defined(__SAME51N19A__) && __SAME51N19A__)
+#ifndef SAME5x
+# define SAME5x ((defined(__SAME51N19A__) && __SAME51N19A__) || (defined(__SAME54P20A__) && __SAME54P20A__))
+#endif
+
+#ifndef SAM4E
+# define SAM4E 0
+#endif
+
+#ifndef SAM4S
+# define SAM4S 0
+#endif
+
+#ifndef SAM3XA
+# define SAM3XA 0
+#endif
+
+#ifndef SAME70
+# define SAME70 0
#endif
#if SAME70