X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fteleshield-v0.1%2Fao_teleshield.c;h=713c49f92e87bfdd020f1a442a8fc3bbb2425fc3;hb=382b3ef62a09e580834b07faf9ed2d00e5ce1621;hp=fc203537bd100e8e231e6f06a3386cfd9ef7af23;hpb=791c137728dd3398bd7275be13cc9e6be96d7af4;p=fw%2Faltos diff --git a/src/teleshield-v0.1/ao_teleshield.c b/src/teleshield-v0.1/ao_teleshield.c index fc203537..713c49f9 100644 --- a/src/teleshield-v0.1/ao_teleshield.c +++ b/src/teleshield-v0.1/ao_teleshield.c @@ -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 @@ -17,7 +18,9 @@ #include "ao.h" +#if 0 __code uint8_t ao_log_format = AO_LOG_FORMAT_NONE; /* until we actually log stuff */ +#endif void main(void) @@ -27,6 +30,7 @@ main(void) /* Turn on the LED until the system is stable */ ao_led_init(LEDS_AVAILABLE); ao_led_on(AO_LED_RED); + ao_task_init(); ao_timer_init(); ao_cmd_init(); ao_spi_init(); @@ -34,7 +38,7 @@ main(void) ao_usb_init(); ao_monitor_init(); ao_radio_init(); - ao_packet_master_init(); + ao_packet_slave_init(1); ao_btm_init(); #if HAS_DBG ao_dbg_init(); @@ -43,6 +47,8 @@ main(void) ao_aes_init(); ao_radio_cmac_init(); #endif + ao_serial_init(); + ao_ardu_serial_init(); ao_config_init(); ao_start_scheduler(); }