summaryrefslogtreecommitdiff
path: root/src/core/ao_ignite.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-07-14 02:44:17 -0700
committerKeith Packard <keithp@keithp.com>2012-07-14 02:44:17 -0700
commit0cfd22baa6af44e053428c30c1a95cf5551b68af (patch)
treea347ac877f882bb6eaef11f0a88d46fe89915514 /src/core/ao_ignite.c
parent37032e4b0cbac4c823e3dd18e60ad8900e9ceff1 (diff)
src: Add explicit 'pin' argument to ao_enable_output
This lets the cc1111 use the atomic bit operation instead of a mask, which is immune to interrupt issues as well as being a shorter code sequence. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_ignite.c')
-rw-r--r--src/core/ao_ignite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ao_ignite.c b/src/core/ao_ignite.c
index e82de355..c7829fc3 100644
--- a/src/core/ao_ignite.c
+++ b/src/core/ao_ignite.c
@@ -195,8 +195,8 @@ __xdata struct ao_task ao_igniter_task;
void
ao_ignite_set_pins(void)
{
- ao_enable_output(AO_IGNITER_DROGUE_PORT, AO_IGNITER_DROGUE_PIN, 0);
- ao_enable_output(AO_IGNITER_MAIN_PORT, AO_IGNITER_MAIN_PIN, 0);
+ ao_enable_output(AO_IGNITER_DROGUE_PORT, AO_IGNITER_DROGUE_PIN, AO_IGNITER_DROGUE, 0);
+ ao_enable_output(AO_IGNITER_MAIN_PORT, AO_IGNITER_MAIN_PIN, AO_IGNITER_MAIN, 0);
}
void