5ad225e970cd0f47be42a4c3d57463869dc634ad
[fw/altos] / src / telemetrum-v4.0 / telemetrum.c
1 /*
2  * Copyright © 2016 Keith Packard <keithp@keithp.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  */
14
15 #include <ao.h>
16 #include <ao_led.h>
17 #include <ao_dma_samd21.h>
18 #include <ao_exti.h>
19
20 int main(void)
21 {
22         ao_led_init();
23         ao_clock_init();
24         ao_task_init();
25         ao_timer_init();
26         ao_dma_init();
27         ao_exti_init();
28         ao_spi_init();
29         ao_serial_init();
30         ao_usb_init();
31         ao_cmd_init();
32         ao_start_scheduler();
33         return 0;
34 }