X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Ftelemini-v2.0%2Fao_telemini.c;h=a9ee423c9db11edcf087bc99bec187b7bb1e761e;hp=b85ce8c8bf381818da224cf91713baa2174c8b12;hb=382b3ef62a09e580834b07faf9ed2d00e5ce1621;hpb=2c2bbfd9a1a4b9de42cf566f21f179ff5ede0419 diff --git a/src/telemini-v2.0/ao_telemini.c b/src/telemini-v2.0/ao_telemini.c index b85ce8c8..a9ee423c 100644 --- a/src/telemini-v2.0/ao_telemini.c +++ b/src/telemini-v2.0/ao_telemini.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,40 +18,47 @@ #include "ao.h" #include "ao_pins.h" - -__xdata uint8_t ao_force_freq; +#include void main(void) { - /* - * Reduce the transient on the ignite pins at startup by - * pulling the pins low as soon as possible at power up - */ - ao_ignite_set_pins(); - ao_clock_init(); +#if HAS_STACK_GUARD + ao_mpu_init(); +#endif + ao_task_init(); + /* Turn on the red LED until the system is stable */ ao_led_init(LEDS_AVAILABLE); ao_led_on(AO_LED_RED); - ao_task_init(); - ao_timer_init(); + + ao_spi_init(); + ao_exti_init(); ao_adc_init(); +#if HAS_BEEP + ao_beep_init(); +#endif ao_cmd_init(); - ao_storage_init(); - ao_exti_init(); - ao_spi_init(); +#if HAS_MS5607 ao_ms5607_init(); +#endif + ao_storage_init(); + ao_flight_init(); ao_log_init(); ao_report_init(); + + ao_usb_init(); ao_telemetry_init(); ao_radio_init(); ao_packet_slave_init(TRUE); + ao_igniter_init(); + ao_config_init(); ao_start_scheduler(); }