aboutsummaryrefslogtreecommitdiffstats
path: root/src/fsm/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fsm/common.h')
-rw-r--r--src/fsm/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fsm/common.h b/src/fsm/common.h
index 1bd3b96..53da672 100644
--- a/src/fsm/common.h
+++ b/src/fsm/common.h
@@ -40,5 +40,11 @@ uint64_t timestamp_now(void);
// Return either 0 or 1, somewhat randomly
int random_bool(void);
+// Fault handling mechanism
+#define FAULT_SOURCE_MAIN 1
+#define FAULT_SOURCE_GPS 2
+#define FAULT_SOURCE_I2C 3
+void trigger_fault(int source);
+
#endif // _COMMON_H_