5.1.5.15 SYS_PostTask Funtion
Syntax
INLINE void SYS_PostTask(SYS_TaskId_t taskId);
Description
This function posts a task to the task manager, and the task handler of the corresponding
stack layer later processes it in the SYS_RunTask() function.
Input Parameters
| Parameter Name | Description |
|---|---|
taskId | ID of the posted task. The application’s ID is
APL_TASK_ID. IDs of the tasks are available in
the SYS_TaskId enum. Each task has a priority and executes only if
no higher-priority task is pending. A handler executes when its
respective task is ready. Each task has its own handler. |
The following table provides details about the correspondence between tasks and handlers:
| Task | Task Handler |
|---|---|
| HAL | HAL_TaskHandler()
|
| BSP | BSP_TaskHandler()
|
| MAC_PHY_HWD | MAC_PHY_HWD_TaskHandler() |
| MAC_HWI | MAC_HWI_TaskHandler()
|
| ZGP | ZGP_TaskHandler()
|
| NWK | NWK_TaskHandler() |
| ZDO | ZDO_TaskHandler()
|
| APS | APS_TaskHandler()
|
| APL | APL_TaskHandler()
|
Return Type and Values
- None
