Initialization
TaskReleaseService_TaskCreate
PxTask_t TaskReleaseService_TaskCreate(PxPrio_t prio, PxEvents_t events);
Parameters:
-
prio - the priority of the task
-
events - the event mask to activate the task
Error codes:
-
all errors from PxTaskCreate
Return values:
-
valid task handle on success
-
invalid task handle on failure
Description:
TaskReleaseService_TaskCreate
creates a task performing the Task Release Service.
The following code shows how to create TaskRS.
Code 1. Creation of the TaskRS
/* Create the TaskRS */
PxTask_t releaseService = TaskReleaseService_TaskCreate(TASK_RELEASE_SERVICE_PRIO,
(PxEvents_t) 0);
if (PxTaskIdError(releaseService) != PXERR_NOERROR)
PxPanic();