A GPS disciplined clock
Dependencies: net lpc1768 crypto clock web log
main/main.c@0:67724a462d86, 2018-01-28 (annotated)
- Committer:
- andrewboyson
- Date:
- Sun Jan 28 14:41:59 2018 +0000
- Revision:
- 0:67724a462d86
- Child:
- 2:ca11ceba8432
Updated libraries
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 0:67724a462d86 | 1 | #include <stdint.h> |
andrewboyson | 0:67724a462d86 | 2 | |
andrewboyson | 0:67724a462d86 | 3 | #include "periphs.h" |
andrewboyson | 0:67724a462d86 | 4 | #include "lpc1768.h" |
andrewboyson | 0:67724a462d86 | 5 | #include "clock.h" |
andrewboyson | 0:67724a462d86 | 6 | #include "tick.h" |
andrewboyson | 0:67724a462d86 | 7 | #include "log.h" |
andrewboyson | 0:67724a462d86 | 8 | #include "net-server.h" |
andrewboyson | 0:67724a462d86 | 9 | #include "settings.h" |
andrewboyson | 0:67724a462d86 | 10 | #include "server-ntp.h" |
andrewboyson | 0:67724a462d86 | 11 | #include "server-http.h" |
andrewboyson | 0:67724a462d86 | 12 | #include "gps.h" |
andrewboyson | 0:67724a462d86 | 13 | #include "watchdog.h" |
andrewboyson | 0:67724a462d86 | 14 | |
andrewboyson | 0:67724a462d86 | 15 | int main() |
andrewboyson | 0:67724a462d86 | 16 | { |
andrewboyson | 0:67724a462d86 | 17 | PeriphsInit(); |
andrewboyson | 0:67724a462d86 | 18 | Lpc1768Init(); |
andrewboyson | 0:67724a462d86 | 19 | SettingsInit(); |
andrewboyson | 0:67724a462d86 | 20 | ClockInit(); |
andrewboyson | 0:67724a462d86 | 21 | LogInit(); |
andrewboyson | 0:67724a462d86 | 22 | GpsInit(); |
andrewboyson | 0:67724a462d86 | 23 | NetServerInit(); |
andrewboyson | 0:67724a462d86 | 24 | ServerHttpInit(); |
andrewboyson | 0:67724a462d86 | 25 | ServerNtpInit(); |
andrewboyson | 0:67724a462d86 | 26 | WatchdogInit(); |
andrewboyson | 0:67724a462d86 | 27 | LogUart = 1; |
andrewboyson | 0:67724a462d86 | 28 | LogTmFunction = ClockTmUtc; |
andrewboyson | 0:67724a462d86 | 29 | |
andrewboyson | 0:67724a462d86 | 30 | while (1) |
andrewboyson | 0:67724a462d86 | 31 | { |
andrewboyson | 0:67724a462d86 | 32 | LogMain(); |
andrewboyson | 0:67724a462d86 | 33 | ClockMain(); |
andrewboyson | 0:67724a462d86 | 34 | GpsMain(); |
andrewboyson | 0:67724a462d86 | 35 | NetServerMain(); |
andrewboyson | 0:67724a462d86 | 36 | WatchdogMain(); |
andrewboyson | 0:67724a462d86 | 37 | } |
andrewboyson | 0:67724a462d86 | 38 | } |