From 379b0ec3e5eacdde822966c84062bea41da7ae89 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 19 Feb 2019 19:47:19 +0000 Subject: Working --- app/main.c | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) (limited to 'app/main.c') 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(); -- cgit v1.2.3