From 3587bfd248e115bb1abb28f71b263575b4e8e367 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 18 May 2013 03:22:10 -0700 Subject: altos: Add easymini-v0.1 product Signed-off-by: Keith Packard --- src/easymini-v0.1/ao_easymini.c | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/easymini-v0.1/ao_easymini.c (limited to 'src/easymini-v0.1/ao_easymini.c') diff --git a/src/easymini-v0.1/ao_easymini.c b/src/easymini-v0.1/ao_easymini.c new file mode 100644 index 00000000..1cdefdd6 --- /dev/null +++ b/src/easymini-v0.1/ao_easymini.c @@ -0,0 +1,41 @@ +/* + * Copyright © 2011 Keith Packard + * + * 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 +#include + +void +main(void) +{ + ao_clock_init(); + ao_task_init(); + ao_timer_init(); + ao_exti_init(); + + ao_cmd_init(); +#if 0 + ao_storage_init(); + ao_flight_init(); + ao_ms5607_init(); + ao_log_init(); + ao_report_init(); + ao_igniter_init(); +#endif + ao_usb_init(); + ao_config_init(); + ao_start_scheduler(); +} -- cgit v1.2.3 From 278300b2bc98b92cc71ec016ab0fc93eb3696435 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 18 May 2013 03:52:59 -0700 Subject: altos: Initialize SPI for easymini Doesn't work very well without this Signed-off-by: Keith Packard --- src/easymini-v0.1/ao_easymini.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/easymini-v0.1/ao_easymini.c') diff --git a/src/easymini-v0.1/ao_easymini.c b/src/easymini-v0.1/ao_easymini.c index 1cdefdd6..ce70398e 100644 --- a/src/easymini-v0.1/ao_easymini.c +++ b/src/easymini-v0.1/ao_easymini.c @@ -26,16 +26,19 @@ main(void) ao_timer_init(); ao_exti_init(); + ao_spi_init(); + ao_storage_init(); + + ao_usb_init(); + ao_cmd_init(); #if 0 - ao_storage_init(); ao_flight_init(); ao_ms5607_init(); ao_log_init(); ao_report_init(); ao_igniter_init(); #endif - ao_usb_init(); ao_config_init(); ao_start_scheduler(); } -- cgit v1.2.3 From a4df2575b4e782e83cc4e9b1d2e5cd2397a97dd8 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 19 May 2013 20:33:35 -0700 Subject: altos/easymini: Initialize beep and ADC. Declare use of igniter bits. This makes easymini actually work! Signed-off-by: Keith Packard --- src/easymini-v0.1/ao_easymini.c | 6 ++++-- src/easymini-v0.1/ao_pins.h | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/easymini-v0.1/ao_easymini.c') diff --git a/src/easymini-v0.1/ao_easymini.c b/src/easymini-v0.1/ao_easymini.c index ce70398e..97230b61 100644 --- a/src/easymini-v0.1/ao_easymini.c +++ b/src/easymini-v0.1/ao_easymini.c @@ -26,19 +26,21 @@ main(void) ao_timer_init(); ao_exti_init(); + ao_beep_init(); + + ao_adc_init(); ao_spi_init(); ao_storage_init(); ao_usb_init(); ao_cmd_init(); -#if 0 ao_flight_init(); ao_ms5607_init(); ao_log_init(); ao_report_init(); ao_igniter_init(); -#endif ao_config_init(); + ao_start_scheduler(); } diff --git a/src/easymini-v0.1/ao_pins.h b/src/easymini-v0.1/ao_pins.h index 12d6c5db..4102c21d 100644 --- a/src/easymini-v0.1/ao_pins.h +++ b/src/easymini-v0.1/ao_pins.h @@ -88,6 +88,8 @@ #define HAS_APRS 0 #define HAS_LOG 1 #define USE_INTERNAL_FLASH 0 +#define HAS_IGNITE 1 +#define HAS_IGNITE_REPORT 1 #define AO_DATA_RING 16 -- cgit v1.2.3