Central Heating controller using the real time clock, PHY module for internet, 1-wire interface for temperature sensors, a system log and a configuration file

Dependencies:   net 1-wire lpc1768 crypto clock web fram log

/media/uploads/andrewboyson/heating.sch

/media/uploads/andrewboyson/heating.brd

/media/uploads/andrewboyson/eagle.epf

Revision:
59:593ed054a439
Parent:
58:d968191f46f2
Child:
74:8228f0297227
--- a/main/main.c	Tue May 07 07:42:24 2019 +0000
+++ b/main/main.c	Thu May 09 07:49:30 2019 +0000
@@ -12,12 +12,12 @@
 #include "web.h"
 #include "settings.h"
 #include "values.h"
-#include "fault.h"
-#include "fault-this.h"
+#include "restart.h"
+#include "restart-this.h"
 
 int main()
 {
-    FaultZone = FAULT_ZONE_INIT;
+    RestartZone = RESTART_ZONE_INIT;
             PeriphsInit();
             Lpc1768Init();
                 LedInit();
@@ -35,14 +35,14 @@
     if (     ValuesInit()) goto end;
     while (1)
     {   
-        FaultZone = FAULT_ZONE_LOG;              LogMain();
-        FaultZone = FAULT_ZONE_CLOCK;            ClkMain();
-        FaultZone = FAULT_ZONE_NET;              NetMain();
-        FaultZone = FAULT_ZONE_VALUES;        ValuesMain();
-        FaultZone = FAULT_ZONE_ONE_WIRE; if (OneWireMain()) break;
-        FaultZone = FAULT_ZONE_DEVICE;   if ( DeviceMain()) break;
-        FaultZone = FAULT_ZONE_HEATING;      HeatingMain();
-        FaultZone = FAULT_ZONE_LPC1768;      Lpc1768Main();
+        RestartZone = RESTART_ZONE_LOG;              LogMain();
+        RestartZone = RESTART_ZONE_CLOCK;            ClkMain();
+        RestartZone = RESTART_ZONE_NET;              NetMain();
+        RestartZone = RESTART_ZONE_VALUES;        ValuesMain();
+        RestartZone = RESTART_ZONE_ONE_WIRE; if (OneWireMain()) break;
+        RestartZone = RESTART_ZONE_DEVICE;   if ( DeviceMain()) break;
+        RestartZone = RESTART_ZONE_HEATING;      HeatingMain();
+        RestartZone = RESTART_ZONE_LPC1768;      Lpc1768Main();
     }
 
 end: