Andrew Boyson / gps

Dependencies:   net lpc1768 crypto clock web log

main/main.c

Committer:
andrewboyson
Date:
2018-11-18
Revision:
8:2ef0f459bc83
Parent:
3:36ee2aa7945a
Child:
12:9bd8f04df514

File content as of revision 8:2ef0f459bc83:

#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"

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