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:
74:8228f0297227
Parent:
59:593ed054a439
Child:
100:fa45a545eb89
--- a/main/main.c	Sat Sep 07 18:58:43 2019 +0000
+++ b/main/main.c	Tue Sep 24 18:17:49 2019 +0000
@@ -14,17 +14,19 @@
 #include "values.h"
 #include "restart.h"
 #include "restart-this.h"
+#include "crypto.h"
 
 int main()
 {
     RestartZone = RESTART_ZONE_INIT;
             PeriphsInit();
+                LedInit();
             Lpc1768Init();
-                LedInit();
                 ClkInit();
                 LogInit(ClkNowTmUtc, 115200);
     if (       FramInit()) goto end; //Reserves 1 FRAM byte to detect if empty
            FramAllocate(4);          //Reserves 4 FRAM bytes where the watchdog used to hold the last program position
+             CryptoInit();           //Uses log
                 NetInit("ch4", "ch6");
     if (SettingsNtpInit()) goto end; //Loads of FRAM
                 WebInit();           //No FRAM
@@ -43,6 +45,7 @@
         RestartZone = RESTART_ZONE_DEVICE;   if ( DeviceMain()) break;
         RestartZone = RESTART_ZONE_HEATING;      HeatingMain();
         RestartZone = RESTART_ZONE_LPC1768;      Lpc1768Main();
+        RestartZone = RESTART_ZONE_CRYPTO;        CryptoMain();
     }
 
 end: