Andrew Boyson / gps

Dependencies:   net lpc1768 crypto clock web log

main/main.c

Committer:
andrewboyson
Date:
2018-12-29
Revision:
16:3d40d832dc70
Parent:
12:9bd8f04df514
Child:
18:eda70c3ee1a0

File content as of revision 16:3d40d832dc70:

#include <stdint.h>

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

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