altos/telefireone-v1.0: Track ao_led_init API change
[fw/altos] / src / telebt-v3.0 / ao_telebt.c
index 133383ef66b6df740c41c104be271c73602e25dd..3d48b6b928563c7bb1ed93bddc4af283a9ce2f98 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
@@ -21,6 +22,8 @@
 #include <ao_eeprom.h>
 #include <ao_profile.h>
 #include <ao_btm.h>
+#include <ao_lco_cmd.h>
+#include <ao_send_packet.h>
 #if HAS_SAMPLE_PROFILE
 #include <ao_sample_profile.h>
 #endif
@@ -31,9 +34,8 @@ main(void)
        ao_clock_init();
 
        ao_task_init();
-       ao_serial_init();
-       ao_led_init(LEDS_AVAILABLE);
-       ao_led_on(AO_LED_RED);
+       ao_led_init();
+       ao_led_on(LEDS_AVAILABLE);
        ao_timer_init();
 
        ao_spi_init();
@@ -44,15 +46,19 @@ main(void)
        ao_btm_init();
        ao_cmd_init();
 
+       ao_lco_cmd_init();
+
        ao_eeprom_init();
 
        ao_usb_init();
        ao_radio_init();
        ao_packet_master_init();
+       ao_monitor_init();
+       ao_send_packet_init();
 
        ao_config_init();
 
-       ao_led_off(AO_LED_RED);
+       ao_led_off(LEDS_AVAILABLE);
 
        ao_start_scheduler();
        return 0;