summaryrefslogtreecommitdiffstats
path: root/app/main.c
diff options
context:
space:
mode:
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();