X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Feasymotor-v2%2Fao_easymotor.c;fp=src%2Feasymotor-v2%2Fao_easymotor.c;h=4c31ee3bed836d413bbbfad4de50cf7521fda3df;hp=0000000000000000000000000000000000000000;hb=fa4bb77064a2606e82091e3e533dac897912c627;hpb=80a7cdfe3d6256cc86861195a78f422828b4ecc1 diff --git a/src/easymotor-v2/ao_easymotor.c b/src/easymotor-v2/ao_easymotor.c new file mode 100644 index 00000000..4c31ee3b --- /dev/null +++ b/src/easymotor-v2/ao_easymotor.c @@ -0,0 +1,49 @@ +/* + * Copyright © 2020 Bdale Garbee + * + * 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; 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 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ + +#include +#include +#include +#include + +int +main(void) +{ + ao_clock_init(); + ao_task_init(); + ao_timer_init(); + + ao_spi_init(); + ao_dma_init(); + ao_exti_init(); + + ao_adc_init(); + ao_beep_init(); + ao_cmd_init(); + ao_usb_init(); + + ao_adxl375_init(); + + ao_storage_init(); + ao_flight_init(); + ao_log_init(); + ao_report_init(); + ao_config_init(); + + ao_start_scheduler(); +}