A GPS disciplined clock

Dependencies:   net lpc1768 crypto clock web log

main/main.c

Committer:
andrewboyson
Date:
2018-02-04
Revision:
3:36ee2aa7945a
Parent:
2:ca11ceba8432
Child:
8:2ef0f459bc83

File content as of revision 3:36ee2aa7945a:

#include <stdint.h>

#include "periphs.h"
#include "system.h"
#include "led.h"
#include "clock.h"
#include "tick.h"
#include "log.h"
#include "net-server.h"
#include "settings.h"
#include "server-ntp.h"
#include "server-http.h"
#include "gps.h"
#include "watchdog.h"
#include "trace.h"

int main()
{
          PeriphsInit();
           SystemInit();
              LedInit();
         SettingsInit();
            TraceInit();
            ClockInit();
              LogInit(ClockTmUtc, 115200);
              GpsInit();
        NetServerInit();
       ServerHttpInit();
        ServerNtpInit();
         WatchdogInit();
      
    while (1)
    {   
              LogMain();
            ClockMain();
              GpsMain();
        NetServerMain();
         WatchdogMain();
    }
}