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:
Diffstat (limited to 'src/Configuration.h')
-rw-r--r--src/Configuration.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/Configuration.h b/src/Configuration.h
index 5d641841..5f659f4b 100644
--- a/src/Configuration.h
+++ b/src/Configuration.h
@@ -131,16 +131,18 @@ constexpr unsigned int DefaultPinWritePwmFreq = 500; // default PWM frequency fo
// Using single-precision maths and up to 9-factor calibration: (9 + 5) * 4 bytes per point
// Using double-precision maths and up to 9-factor calibration: (9 + 5) * 8 bytes per point
// So 32 points using double precision arithmetic need 3584 bytes of stack space.
-#ifdef DUET_NG
+#if SAM4E || SAM4S
constexpr size_t MaxGridProbePoints = 441; // 441 allows us to probe e.g. 400x400 at 20mm intervals
constexpr size_t MaxXGridPoints = 41; // Maximum number of grid points in one X row
constexpr size_t MaxProbePoints = 32; // Maximum number of G30 probe points
constexpr size_t MaxDeltaCalibrationPoints = 32; // Should a power of 2 for speed
-#else
+#elif SAM3XA
constexpr size_t MaxGridProbePoints = 121; // 121 allows us to probe 200x200 at 20mm intervals
constexpr size_t MaxXGridPoints = 21; // Maximum number of grid points in one X row
constexpr size_t MaxProbePoints = 32; // Maximum number of G30 probe points
constexpr size_t MaxDeltaCalibrationPoints = 32; // Should a power of 2 for speed
+#else
+# error
#endif
const float DefaultGridSpacing = 20.0; // Default bed probing grid spacing in mm
@@ -171,14 +173,16 @@ constexpr size_t FILENAME_LENGTH = 100;
constexpr size_t MaxHeaterNameLength = 20; // Maximum number of characters in a heater name
// Output buffer lengths
-#ifdef DUET_NG
+#if SAM4E || SAM4S
constexpr uint16_t OUTPUT_BUFFER_SIZE = 256; // How many bytes does each OutputBuffer hold?
constexpr size_t OUTPUT_BUFFER_COUNT = 32; // How many OutputBuffer instances do we have?
constexpr size_t RESERVED_OUTPUT_BUFFERS = 1; // Number of reserved output buffers after long responses. Must be enough for an HTTP header
-#else
+#elif SAM3XA
constexpr uint16_t OUTPUT_BUFFER_SIZE = 128; // How many bytes does each OutputBuffer hold?
constexpr size_t OUTPUT_BUFFER_COUNT = 32; // How many OutputBuffer instances do we have?
constexpr size_t RESERVED_OUTPUT_BUFFERS = 2; // Number of reserved output buffers after long responses. Must be enough for an HTTP header
+#else
+# error
#endif
// Move system