projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6bf1d91
)
configure igniter ports, set values to measured ones
author
Keith Packard
<keithp@keithp.com>
Sat, 25 Apr 2009 02:12:28 +0000
(19:12 -0700)
committer
Keith Packard
<keithp@keithp.com>
Sat, 25 Apr 2009 02:12:28 +0000
(19:12 -0700)
ao_ignite.c
patch
|
blob
|
history
diff --git
a/ao_ignite.c
b/ao_ignite.c
index acb9399babe53dc737f1c3988070a2bfd972680f..ece40bf3a3f0d357c43e983cde0bccb8a77f4a70 100644
(file)
--- a/
ao_ignite.c
+++ b/
ao_ignite.c
@@
-19,12
+19,15
@@
#define AO_IGNITER_DROGUE P2_3
#define AO_IGNITER_MAIN P2_4
#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)
-/*
XXX
test these values with real igniters */
-#define AO_IGNITER_OPEN 100
-#define AO_IGNITER_CLOSED
20
000
-#define AO_IGNITER_FIRE_TIME AO_MS_TO_TICKS(50)
-#define AO_IGNITER_CHARGE_TIME AO_MS_TO_TICKS(200)
+/* test these values with real igniters */
+#define AO_IGNITER_OPEN 100
0
+#define AO_IGNITER_CLOSED
7
000
+#define AO_IGNITER_FIRE_TIME AO_MS_TO_TICKS(50
0
)
+#define AO_IGNITER_CHARGE_TIME AO_MS_TO_TICKS(200
0
)
struct ao_ignition {
uint8_t request;
struct ao_ignition {
uint8_t request;
@@
-119,5
+122,8
@@
__xdata struct ao_task ao_igniter_task;
void
ao_igniter_init(void)
{
void
ao_igniter_init(void)
{
+ AO_IGNITER_DROGUE = 0;
+ AO_IGNITER_MAIN = 0;
+ AO_IGNITER_DIR |= AO_IGNITER_DROGUE_BIT | AO_IGNITER_MAIN_BIT;
ao_add_task(&ao_igniter_task, ao_igniter, "igniter");
}
ao_add_task(&ao_igniter_task, ao_igniter, "igniter");
}