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-01-18 18:21:02 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-01-18 18:21:02 +0300
commite0bbf71357b07c22e6d43be3cca5c7422163be32 (patch)
treeca83dbb87348e51c735b106900b69142f5c058f5 /src/Endstops/EndstopDefs.h
parentd577af1d5874392d28c65427afbf4006f8a6d521 (diff)
Lock ZProbes when accessing them and added more items to OM
Diffstat (limited to 'src/Endstops/EndstopDefs.h')
-rw-r--r--src/Endstops/EndstopDefs.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/Endstops/EndstopDefs.h b/src/Endstops/EndstopDefs.h
index 394f47b5..97eb1dc6 100644
--- a/src/Endstops/EndstopDefs.h
+++ b/src/Endstops/EndstopDefs.h
@@ -8,6 +8,8 @@
#ifndef SRC_ENDSTOPS_ENDSTOPDEFS_H_
#define SRC_ENDSTOPS_ENDSTOPDEFS_H_
+#include <NamedEnum.h>
+
// Forward declarations
class EndstopOrZProbe;
class Endstop;
@@ -53,15 +55,15 @@ enum class EndStopPosition : unsigned int
};
// Type of an endstop input - values must tally with the M574 command S parameter
-enum class EndStopType : unsigned int
-{
- unused_wasActiveLow = 0,
- inputPin = 1,
- zProbeAsEndstop = 2,
- motorStallAny = 3,
- motorStallIndividual = 4,
- numInputTypes = 5
-};
+NamedEnum
+( EndStopType, unsigned int,
+ unused_wasActiveLow,
+ inputPin,
+ zProbeAsEndstop,
+ motorStallAny,
+ motorStallIndividual,
+ numInputTypes
+);
// This is used as the return type of function Stopped.
// Note the ordering: we need more-stopped-value > less-stopped-value