summaryrefslogtreecommitdiffstats
path: root/app/main.c
diff options
context:
space:
mode:
authorroot <root@lab.panaceas.james.local>2019-02-19 19:47:19 +0000
committerroot <root@lab.panaceas.james.local>2019-02-19 19:47:19 +0000
commit379b0ec3e5eacdde822966c84062bea41da7ae89 (patch)
treea126770df052c3e735cdf09a32e5d58593c3c4ec /app/main.c
parent9bbf1d200534cd946c4776e29457f989147b45b2 (diff)
downloadclock-379b0ec3e5eacdde822966c84062bea41da7ae89.tar.gz
clock-379b0ec3e5eacdde822966c84062bea41da7ae89.tar.bz2
clock-379b0ec3e5eacdde822966c84062bea41da7ae89.zip
Working
Diffstat (limited to 'app/main.c')
-rw-r--r--app/main.c35
1 files changed, 19 insertions, 16 deletions
diff --git a/app/main.c b/app/main.c
index 984e74b..229674e 100644
--- a/app/main.c
+++ b/app/main.c
@@ -13,7 +13,7 @@ static void cmd_dispatch()
switch (c) {
case 'R':
- scb_reset_system();
+ scb_reset_system();
break;
@@ -78,6 +78,7 @@ system_init (void)
steth_init();
gps_init();
+ ntp_init();
}
@@ -91,32 +92,34 @@ main (void)
printf ("Boot\r\n");
#if 0
+
while (1) {
- uint32_t now = SCS_DWT_CYCCNT;
- uint64_t abs= abs_extend (now);
- EPOCH e = pll_decompose (abs);
- time_print_epoch ("TEST: ", e);
- delay_ms(100);
-}
+ uint32_t now = SCS_DWT_CYCCNT;
+ uint64_t abs = abs_extend (now);
+ EPOCH e = pll_decompose (abs);
+ time_print_epoch ("TEST: ", e);
+ delay_ms (100);
+ }
+
#endif
-
+
while (1) {
#if 0
- {
- uint32_t now = SCS_DWT_CYCCNT;
- uint64_t abs= abs_extend (now);
- EPOCH e = pll_decompose (abs);
- time_print_epoch ("TEST: ", e);
- delay_ms(100);
- }
+ {
+ uint32_t now = SCS_DWT_CYCCNT;
+ uint64_t abs = abs_extend (now);
+ EPOCH e = pll_decompose (abs);
+ time_print_epoch ("TEST: ", e);
+ delay_ms (100);
+ }
- abs_meh();
+ abs_meh();
#endif
msf_dispatch();