Andrew Boyson / oldheating

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

Revision:
4:9e1c6ac4ef06
Parent:
1:ccc66fdf858d
Child:
6:b325de442777
--- a/main/main.c	Wed Jan 31 21:02:12 2018 +0000
+++ b/main/main.c	Sun Feb 04 11:36:24 2018 +0000
@@ -1,4 +1,4 @@
-#include "lpc1768.h"
+#include "system.h"
 #include "watchdog.h"
 #include "periphs.h"
 #include "led.h"
@@ -19,9 +19,10 @@
 int main()
 {
           PeriphsInit();
-          Lpc1768Init();
+           SystemInit();
+              LedInit();
             ClockInit();
-              LogInit();
+              LogInit(ClockTmUtc, 115200);
     if (     FramInit()) goto end; //Reserves 1 FRAM byte to detect if empty
     if ( WatchdogInit()) goto end; //Reserves 1 FRAM byte for the program position
         NetServerInit();
@@ -33,8 +34,6 @@
     if ( SettingsInit()) goto end;
     if (    TraceInit()) goto end;
     if (   ValuesInit()) goto end;
-    LogUart = 1;
-    LogTmFunction = ClockTmUtc;
       
     while (1)
     {