aboutsummaryrefslogtreecommitdiff
path: root/src/Configuration.h
diff options
context:
space:
mode:
authorD Delmar Davis <don@suspectdevices.com>2018-03-03 22:33:10 -0800
committerD Delmar Davis <don@suspectdevices.com>2018-03-03 22:33:10 -0800
commit09fc6b732af6fa6a286263c2d7d7f449014bc4d7 (patch)
tree6af79787a5601fcbd1dab2e2c9a63b0847e1080d /src/Configuration.h
parent5ffca99f3d4e82db3880305be2125d498e791bc1 (diff)
Cleanup for platformio migration
Diffstat (limited to 'src/Configuration.h')
-rwxr-xr-xsrc/Configuration.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/Configuration.h b/src/Configuration.h
new file mode 100755
index 0000000..822846d
--- /dev/null
+++ b/src/Configuration.h
@@ -0,0 +1,65 @@
+/*------------------------------------------------------------------
+ * Common defines for EMS hardware
+ */
+
+#ifndef EMS_COMMON_h
+#define EMS_COMMON_h
+
+#include <Arduino.h>
+
+#define GIT_VERSION "xxxxxxxxxxxxxxxxx"
+#define MAX_PSN_LENGTH 33
+//
+// reccommend major and minor rev plus build date.
+//
+#ifndef FIRMWAREREV
+#define FIRMWAREREV "EMS1"
+#endif
+
+#define SAFETY_LAMP_PIN 13
+//
+// Define E_STOP_PIN to enable estop switch
+//
+//#define E_STOP_PIN x
+#ifndef E_STOP_PULLED
+#define E_STOP_PULLED 1
+#endif
+
+//
+// Define LIGHT_CURTAIN pins to enable light curtain
+//
+//#define LIGHT_CURTAIN_OSDD_PIN 5
+//#define LIGHT_CURTAIN_START_PIN 6
+#define LIGHT_CURTAIN_START LOW
+#define LIGHT_CURTAIN_STOP HIGH
+#define LIGHT_CURTAIN_OK LOW
+#define LIGHT_CURTAIN_NOT_CLEAR HIGH
+
+//
+// Define K1_PIN if konactor is connected to machine
+//
+//#define K1_PIN x
+
+//
+#define POST_TIMESTAMP_DELIMETER ','
+
+// analog write resolution (new for m0s)
+#define ANALOG_WRITE_RESOLUTION 8
+
+// tzoffset from localtime (PDT) to GMT (7 hrs) in seconds
+#define LOCAL_TZ_OFFSET ( 7L * 3600L )
+
+// non volitile memory addresses go here......
+#define CLEAN_SHUTDOWN_EEPROM_ADDR ((uint8_t *)0)
+#define CLEAN_SHUTDOWN_CODE 0xAA //unlikely to randomly be in there
+#define LOG_LEVEL_EEPROM_ADDR ((uint8_t*) 2)
+#define DEBUG_LEVEL_EEPROM_ADDR ((uint8_t*) 3)
+
+
+
+#define MONITOR_UART Serial
+#define MONITOR_BAUD 9600
+
+#define FAKE_A_FLOAT(_f) int((_f)), int(abs((_f) - int(_f))*100)
+
+#endif