2022-01-10 00:02:21 +01:00
|
|
|
#ifndef _GLOBALS_H_
|
|
|
|
#define _GLOBALS_H_
|
|
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
|
|
|
|
typedef enum eSystem_Status
|
|
|
|
{
|
|
|
|
sysStat_Startup,
|
|
|
|
sysStat_Normal,
|
|
|
|
sysStat_Rain,
|
|
|
|
sysStat_Purge,
|
2022-01-19 22:23:36 +01:00
|
|
|
sysStat_Error,
|
|
|
|
sysStat_Shutdown
|
2022-01-10 00:02:21 +01:00
|
|
|
} tSystem_Status;
|
|
|
|
|
2022-01-14 15:36:17 +01:00
|
|
|
|
2022-01-12 00:52:27 +01:00
|
|
|
typedef struct Globals_s {
|
2022-01-10 00:02:21 +01:00
|
|
|
tSystem_Status systemStatus = sysStat_Startup;
|
|
|
|
uint8_t purgePulses= 0;
|
2022-01-10 00:55:04 +01:00
|
|
|
tSystem_Status resumeStatus = sysStat_Startup;
|
2022-01-14 15:36:17 +01:00
|
|
|
char systemStatustxt[16] = "";
|
2022-01-12 00:52:27 +01:00
|
|
|
}Globals_t;
|
2022-01-10 00:02:21 +01:00
|
|
|
|
|
|
|
extern Globals_t globals;
|
|
|
|
extern uint32_t TravelDistance_highRes;
|
|
|
|
|
|
|
|
#endif
|