Enable packet-based communcation to command processor
[fw/altos] / src / ao_telemetrum.c
index a680ce19675180b0377887b33e0609d82169f5d8..5250078e7c8df351df22dd9932f26d96587e26f6 100644 (file)
@@ -20,9 +20,7 @@
 void
 main(void)
 {
-       CLKCON = 0;
-       while (!(SLEEP & SLEEP_XOSC_STB))
-               ;
+       ao_clock_init();
 
        /* Turn on the red LED until the system is stable */
        ao_led_init(AO_LED_RED|AO_LED_GREEN);
@@ -42,8 +40,8 @@ main(void)
        ao_gps_report_init();
        ao_telemetry_init();
        ao_radio_init();
+       ao_packet_slave_init();
        ao_igniter_init();
-       ao_dbg_init();
        ao_config_init();
        ao_start_scheduler();
 }