altos: Add generic LED driver.
[fw/altos] / src / telelcotwo-v0.1 / ao_telelcotwo.c
index 318875e3c3bbdebf0295fc39672ee7113952a2b7..6ced1912dbb667fdb85f2a14a24d5f7cb164fd9d 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -33,8 +34,8 @@ main(void)
 {
        ao_clock_init();
 
-       ao_led_init(LEDS_AVAILABLE);
-       ao_led_on(AO_LED_GREEN);
+       ao_led_init();
+       ao_led_on(LEDS_AVAILABLE);
        ao_beep_init();
        ao_task_init();
 
@@ -60,6 +61,8 @@ main(void)
        ao_lco_cmd_init();
 //     ao_radio_cmac_cmd_init();
 
+       ao_led_off(LEDS_AVAILABLE);
+
        ao_start_scheduler();
        return 0;
 }