Make LED usage depend on target device
[fw/altos] / ao_tidongle.c
index ea21e12779c22c6419c81e813e7e0d0f8d814709..4ef86971e2dd8f721de2330b419ee8414142dca7 100644 (file)
@@ -27,16 +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 */
-       ao_led_on(AO_LED_GREEN);
+       P1DIR |= 1;
+       P1 |= 1;
        ao_start_scheduler();
 }