diff options
| author | Keith Packard <keithp@keithp.com> | 2013-05-22 13:03:06 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-08-25 22:24:00 -0700 |
| commit | d0b4e926ecececa7499a301b6135189be119512e (patch) | |
| tree | a2c8a67bf1528745a25acfc202d238e7b3242e49 /src/telemini-v2.0/ao_telemini.c | |
| parent | 3ded57394f6dfd7beb9526c031a5c6c6c9926917 (diff) | |
Initial TeleMini bits
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/telemini-v2.0/ao_telemini.c')
| -rw-r--r-- | src/telemini-v2.0/ao_telemini.c | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/telemini-v2.0/ao_telemini.c b/src/telemini-v2.0/ao_telemini.c new file mode 100644 index 00000000..84df2b8c --- /dev/null +++ b/src/telemini-v2.0/ao_telemini.c @@ -0,0 +1,54 @@ +/* + * Copyright © 2011 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_pins.h" + +__xdata uint8_t ao_force_freq; + +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(); + + /* 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_adc_init(); + ao_cmd_init(); + ao_storage_init(); + ao_ms5607_init(); + ao_flight_init(); + ao_log_init(); + ao_report_init(); + ao_telemetry_init(); + ao_radio_init(); + ao_packet_slave_init(TRUE); + ao_igniter_init(); + ao_config_init(); + ao_start_scheduler(); +} |
