summaryrefslogtreecommitdiff
path: root/src/core/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-07-14 01:26:38 -0700
committerKeith Packard <keithp@keithp.com>2012-07-14 01:26:38 -0700
commitd90587535676f9492f0fde6b974353158104ef88 (patch)
treedd429fc66374376711dc6790b96f1ea09c640987 /src/core/ao.h
parent09633cac697e37d770b2b666ab20cab30628484f (diff)
altos: Add arbitrary pyro channel support
Programmed by specifying a conjunction of flight conditions that trigger the igniter to fire. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao.h')
-rw-r--r--src/core/ao.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/core/ao.h b/src/core/ao.h
index eb2d47cf..d4be3be4 100644
--- a/src/core/ao.h
+++ b/src/core/ao.h
@@ -688,6 +688,10 @@ ao_igniter_init(void);
* ao_config.c
*/
+#if AO_PYRO_NUM
+#include <ao_pyro.h>
+#endif
+
#if HAS_FORCE_FREQ
/*
* Set this to force the frequency to 434.550MHz
@@ -696,7 +700,7 @@ extern __xdata uint8_t ao_force_freq;
#endif
#define AO_CONFIG_MAJOR 1
-#define AO_CONFIG_MINOR 11
+#define AO_CONFIG_MINOR 12
#define AO_AES_LEN 16
@@ -718,6 +722,9 @@ struct ao_config {
uint8_t aes_key[AO_AES_LEN]; /* minor version 9 */
uint32_t frequency; /* minor version 10 */
uint16_t apogee_lockout; /* minor version 11 */
+#if AO_PYRO_NUM
+ struct ao_pyro pyro[AO_PYRO_NUM]; /* minor version 12 */
+#endif
};
#define AO_IGNITE_MODE_DUAL 0
@@ -732,6 +739,12 @@ extern __xdata struct ao_config ao_config;
#define AO_CONFIG_MAX_SIZE 128
void
+_ao_config_edit_start(void);
+
+void
+_ao_config_edit_finish(void);
+
+void
ao_config_get(void);
void