taskSpawn( ) – spawn a task
int taskSpawn
(
char * name, /* name of new task (stored at pStackBase) */
int priority, /* priority of new task */
int options, /* task option word */
int stackSize, /* size (bytes) of stack needed plus name */
FUNCPTR entryPt, /* entry point of new task */
int arg1, /* 1st of 10 req’d task args to pass to func */
int arg2,
int arg3,
int arg4,
int arg5,
int arg6,
int arg7,
int arg8,
int arg9,
int arg10
)
成功:返回任务的ID号;失败:返回ERROR。
task option word :
[attach]114879[/attach]
taskDelete( ) – delete a task
STATUS taskDelete
(
int tid /* task ID of task to delete */
)