A GPS disciplined clock
Dependencies: net lpc1768 crypto clock web log
Diff: main/main.c
- Revision:
- 0:67724a462d86
- Child:
- 2:ca11ceba8432
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main/main.c Sun Jan 28 14:41:59 2018 +0000 @@ -0,0 +1,38 @@ +#include <stdint.h> + +#include "periphs.h" +#include "lpc1768.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(); + Lpc1768Init(); + SettingsInit(); + ClockInit(); + LogInit(); + GpsInit(); + NetServerInit(); + ServerHttpInit(); + ServerNtpInit(); + WatchdogInit(); + LogUart = 1; + LogTmFunction = ClockTmUtc; + + while (1) + { + LogMain(); + ClockMain(); + GpsMain(); + NetServerMain(); + WatchdogMain(); + } +} \ No newline at end of file