summaryrefslogtreecommitdiff
path: root/src/core/ao_task.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-07-21 20:04:05 -0700
committerKeith Packard <keithp@keithp.com>2011-08-27 12:45:33 -0700
commit4299b5a36a2f6f9f7bbbc3a1b935dd2357c1fb0f (patch)
tree3b8adeaa02d4f54009aefa9bceafc92a88a64d65 /src/core/ao_task.c
parent776df9ce2e7b4fa5cedda326988e66c614299af4 (diff)
altos: Implement remote launch protocol
Uses the radio_cmac module to provide secure communication. Keeps igniter closed for 500ms. Provides remote status for arming and ignition. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_task.c')
-rw-r--r--src/core/ao_task.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/ao_task.c b/src/core/ao_task.c
index 32826114..a19a6a6f 100644
--- a/src/core/ao_task.c
+++ b/src/core/ao_task.c
@@ -107,7 +107,6 @@ ao_sleep(__xdata void *wchan)
ao_cur_task->wchan = wchan;
);
ao_yield();
- ao_cur_task->alarm = 0;
if (ao_cur_task->wchan) {
ao_cur_task->wchan = NULL;
return 1;
@@ -136,6 +135,12 @@ ao_alarm(uint16_t delay)
}
void
+ao_clear_alarm(void)
+{
+ ao_cur_task->alarm = 0;
+}
+
+void
ao_exit(void)
{
ao_arch_critical(