summaryrefslogtreecommitdiff
path: root/src/core/ao_task.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-08-28 22:52:58 -0600
committerKeith Packard <keithp@keithp.com>2013-08-28 22:52:58 -0600
commitdcc51bb18985c24fa35bce0dd42ea3d847b960bf (patch)
tree652c06c900b01b3c43f674e0f121109cc54b1120 /src/core/ao_task.h
parent7c82acc1c1c5b7b4da7c7ecb3b2fd90140e4c703 (diff)
parenta73b02518fcbc9fc0807ed8e141d3a06e8ad8214 (diff)
Merge remote-tracking branch 'origin/telemini'
Signed-off-by: Keith Packard <keithp@keithp.com> Conflicts: src/core/ao_telemetry.c src/core/ao_telemetry.h Added both Mini and Metrum telemetry defines
Diffstat (limited to 'src/core/ao_task.h')
-rw-r--r--src/core/ao_task.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/ao_task.h b/src/core/ao_task.h
index 1a4b5b6b..9c56b480 100644
--- a/src/core/ao_task.h
+++ b/src/core/ao_task.h
@@ -45,7 +45,10 @@ struct ao_task {
#endif
};
+#ifndef AO_NUM_TASKS
#define AO_NUM_TASKS 16 /* maximum number of tasks */
+#endif
+
#define AO_NO_TASK 0 /* no task id */
extern __xdata struct ao_task * __xdata ao_tasks[AO_NUM_TASKS];
@@ -67,7 +70,7 @@ ao_sleep(__xdata void *wchan);
/* Wake all tasks sleeping on wchan */
void
-ao_wakeup(__xdata void *wchan);
+ao_wakeup(__xdata void *wchan) __reentrant;
/* set an alarm to go off in 'delay' ticks */
void