first cut at turnon scripts for EasyTimer v2
[fw/altos] / src / nucleao-32 / ao_nucleo.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_bmi088.h>
17
18 uint8_t ao_sensor_errors;
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_usb_init();
28         ao_spi_init();
29         ao_bmi088_init();
30         ao_cmd_init();
31         ao_start_scheduler();
32 }
33
34