altos: Switch all main() to return 'int'
[fw/altos] / src / telefiretwo-v0.1 / ao_telefiretwo.c
index 38629d86d8775d520b8fa6847613cbed9dbbd927..b266cfe809494ef39b4595984f99765541aedcdb 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
 #include <ao_exti.h>
 #include <ao_radio_cmac_cmd.h>
 
-void
+int
 main(void)
 {
        ao_clock_init();
 
-       ao_led_init(LEDS_AVAILABLE);
+       ao_led_init();
+       ao_led_on(LEDS_AVAILABLE);
 
        ao_task_init();
 
@@ -50,5 +52,7 @@ main(void)
 
 //     ao_radio_cmac_cmd_init();
 
+       ao_led_off(LEDS_AVAILABLE);
+
        ao_start_scheduler();
 }