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 NameDescription
taskIdID 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:
Table 5-7. Tasks and Task Handlers
TaskTask Handler
HALHAL_TaskHandler()
BSPBSP_TaskHandler()
MAC_PHY_HWDMAC_PHY_HWD_TaskHandler()
MAC_HWIMAC_HWI_TaskHandler()
ZGPZGP_TaskHandler()
NWKNWK_TaskHandler()
ZDOZDO_TaskHandler()
APSAPS_TaskHandler()
APLAPL_TaskHandler()
Return Type and Values
  • None