Allow for slower ADC operation. Add power saving code.
[fw/altos] / ao_tidongle.c
index 385e0cfd68cef25a6b4a528e76a0eb2ac25e7705..4ef86971e2dd8f721de2330b419ee8414142dca7 100644 (file)
@@ -27,13 +27,17 @@ main(void)
                ;
        
        /* Turn on the LED until the system is stable */
-       ao_led_init();
+       ao_led_init(AO_LED_RED);
        ao_led_on(AO_LED_RED);
        ao_timer_init();
        ao_cmd_init();
        ao_usb_init();
-       ao_monitor_init();
+       ao_monitor_init(AO_LED_RED);
        ao_radio_init();
+       ao_dbg_init();
+       /* Bring up the USB link */
+       P1DIR |= 1;
+       P1 |= 1;
        ao_start_scheduler();
 }