TTaskProc type
typedef ERROR (* TTaskProc)(PVOID Arg);

The TTaskProc is a type of pointer to task startup function.

The argument passed in the Arg, is a pointer of PVOID type, specified in the osCreateTask function, during task creation.

When the main task function returns, the task is terminated and its exit code is set to the returned value. It is used to return the task termination status, and it should be set to ERR_NO_ERROR when task is exited with success. However that is used only by a programmer and can have another meaning. The creating a task example shows how to create the task and declare task startups function.

Header file:OS_Task.h (include OS_API.h)
See also: ERR_NO_ERROR, ERROR, creating a task, PVOID, osCreateTask, tasks
SpaceShadow documentation