summaryrefslogtreecommitdiff
path: root/src/ao_ignite.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-07 08:03:11 -0800
committerKeith Packard <keithp@keithp.com>2011-03-16 15:57:38 -0700
commitddd7485f05d0cad8f5b3e1ee9b9a4d2812ea1837 (patch)
tree65c85e93ee95b7508113ce1861eca5f9fda3d941 /src/ao_ignite.c
parentf8afc2641c779fc312a42a6358187d8716ebe61a (diff)
altos: Switch pins around for TeleMini
TeleMini has fewer sensors and uses P0 for igniters instead of P2. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_ignite.c')
-rw-r--r--src/ao_ignite.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ao_ignite.c b/src/ao_ignite.c
index 798ba9b4..7874ee01 100644
--- a/src/ao_ignite.c
+++ b/src/ao_ignite.c
@@ -17,11 +17,21 @@
#include "ao.h"
+#if IGNITE_ON_P2
#define AO_IGNITER_DROGUE P2_3
#define AO_IGNITER_MAIN P2_4
#define AO_IGNITER_DIR P2DIR
#define AO_IGNITER_DROGUE_BIT (1 << 3)
#define AO_IGNITER_MAIN_BIT (1 << 4)
+#endif
+
+#if IGNITE_ON_P0
+#define AO_IGNITER_DROGUE P0_5
+#define AO_IGNITER_MAIN P0_4
+#define AO_IGNITER_DIR P0DIR
+#define AO_IGNITER_DROGUE_BIT (1 << 5)
+#define AO_IGNITER_MAIN_BIT (1 << 4)
+#endif
/* test these values with real igniters */
#define AO_IGNITER_OPEN 1000