diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-05-28 16:19:10 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-05-28 16:19:10 +0300 |
commit | 3861276167ecf679e66ce0f0a7e02c05ec3f84a8 (patch) | |
tree | 3f5c9b064e09b2b5e782824a7e79cef182fd494f /src/RepRapFirmware.h | |
parent | 94a36fa9c95748323666929984972af08ab18335 (diff) |
More changes to support 5LC build configuration
Diffstat (limited to 'src/RepRapFirmware.h')
-rw-r--r-- | src/RepRapFirmware.h | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/src/RepRapFirmware.h b/src/RepRapFirmware.h index e925ecf7..8a44dd08 100644 --- a/src/RepRapFirmware.h +++ b/src/RepRapFirmware.h @@ -40,45 +40,14 @@ const char *SafeStrptime(const char *buf, const char *format, struct tm *timeptr # undef array // needed because some files include <functional> #endif -#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__) +# define SAMC21 0 #endif #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 +# define SAME5x 0 #endif #if SAME70 |