projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Compute initial rotation from vertical
[fw/altos]
/
src
/
core
/
ao_task.h
diff --git
a/src/core/ao_task.h
b/src/core/ao_task.h
index 50bfb220f081571572bbaab82395c1d0e29b1813..9c56b48021d6dd4ebe83c69f44aa04c5ade023c3 100644
(file)
--- a/
src/core/ao_task.h
+++ b/
src/core/ao_task.h
@@
-21,6
+21,10
@@
#include <ao_list.h>
#endif
#include <ao_list.h>
#endif
+#ifndef HAS_TASK_INFO
+#define HAS_TASK_INFO 1
+#endif
+
/* An AltOS task */
struct ao_task {
__xdata void *wchan; /* current wait channel (NULL if running) */
/* An AltOS task */
struct ao_task {
__xdata void *wchan; /* current wait channel (NULL if running) */
@@
-41,7
+45,10
@@
struct ao_task {
#endif
};
#endif
};
+#ifndef AO_NUM_TASKS
#define AO_NUM_TASKS 16 /* maximum number of 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];
#define AO_NO_TASK 0 /* no task id */
extern __xdata struct ao_task * __xdata ao_tasks[AO_NUM_TASKS];
@@
-63,7
+70,7
@@
ao_sleep(__xdata void *wchan);
/* Wake all tasks sleeping on wchan */
void
/* 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
/* set an alarm to go off in 'delay' ticks */
void