diff options
author | Keith Packard <keithp@keithp.com> | 2011-08-11 15:57:58 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-11 15:57:58 -0700 |
commit | b520c32bcddabd42c07ceafa827694a3ae23a76f (patch) | |
tree | cf8fe2783154a2e218c9010c83711d1f4b365efc /src/ao_ignite.c | |
parent | 566b16e67be38c6425e616a5c38d641c4e1a9b12 (diff) |
altos: Pull igniter pins low as soon as possible at boot time
This reduces the pulse width on the igniter circuit caused by the
default cc1111 pin configuration at powerup time.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_ignite.c')
-rw-r--r-- | src/ao_ignite.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ao_ignite.c b/src/ao_ignite.c index 512ec622..5238beb4 100644 --- a/src/ao_ignite.c +++ b/src/ao_ignite.c @@ -202,11 +202,17 @@ __code struct ao_cmds ao_ignite_cmds[] = { __xdata struct ao_task ao_igniter_task; void -ao_igniter_init(void) +ao_ignite_set_pins(void) { AO_IGNITER_DROGUE = 0; AO_IGNITER_MAIN = 0; AO_IGNITER_DIR |= AO_IGNITER_DROGUE_BIT | AO_IGNITER_MAIN_BIT; +} + +void +ao_igniter_init(void) +{ + ao_ignite_set_pins(); ao_cmd_register(&ao_ignite_cmds[0]); ao_add_task(&ao_igniter_task, ao_igniter, "igniter"); } |