OST_TASK_POINTER * OS_GetCurTask ()
Get pointer to task control block (OST_TASK_POINTER) of current task. This pointer can be used in services that controls task indirrectly (OS_Task_Pause, OS_Task_Continue, ect). Usualy this service called in the begin of task-function.
Only in task
None
OST_TASK_POINTER |
Pointer to current task descriptor |
OST_TASK_POINTER tp_Task; void Task (void) { tp_Task = OS_GetCurTask(); for (;;) { /*...*/ } }