diff options
| author | Keith Packard <keithp@keithp.com> | 2013-01-23 19:03:26 -0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2014-02-08 22:03:04 -0800 |
| commit | b0e9f37c6dda97a1df10fe4fc1874c14d15b378d (patch) | |
| tree | a80a31861a25cb34addde9c353712f65e34ab928 /src/fox1ihu/ao_fox1ihu.c | |
| parent | 864d1e2282ac1d241478cf663ee24112c9d3dc37 (diff) | |
altos/fox: Add fox1ihu bringup firmware
Firmware capable of testing fox1ihu hardware
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/fox1ihu/ao_fox1ihu.c')
| -rw-r--r-- | src/fox1ihu/ao_fox1ihu.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/fox1ihu/ao_fox1ihu.c b/src/fox1ihu/ao_fox1ihu.c new file mode 100644 index 00000000..4d02f0da --- /dev/null +++ b/src/fox1ihu/ao_fox1ihu.c @@ -0,0 +1,47 @@ +/* + * Copyright © 2012 Keith Packard <keithp@keithp.com> + * + * 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. + * + * 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 <ao.h> +#include <ao_exti.h> +#include <ao_packet.h> +#include <ao_send_packet.h> + +int +main(void) +{ + ao_clock_init(); + +#if HAS_STACK_GUARD + ao_mpu_init(); +#endif + + ao_task_init(); + ao_led_init(LEDS_AVAILABLE); + ao_led_on(AO_LED_RED); + ao_timer_init(); + + ao_spi_init(); + ao_dma_init(); + ao_exti_init(); + + ao_cmd_init(); + + ao_usb_init(); + + ao_start_scheduler(); + return 0; +} |
