![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_151.png)
27-6
Task HTask Handling Tools
Programmer’s Manual
Description
To set the specific task to be in reinit mode so that each time the task is
swapped in, it will start from beginning of the task again. This functiParameter
generally called once the task is created.
Parameter
Return Value
27.7
TaskStart
Syntax
STATUS
TaskStart
(U32 taskId)
Description
Begin execution of the first application task. This routine will never returns. It
launches the first PPSM application, and all other applications are started by
activating the application icons. This routine is used at the start to kick off the
system.
Parameter
Return Value
Name
Description
taskId
The task identifier of the task to be set.
flag
TRUE or FALSE to indicate whether the
task needs to be in reinit mode.
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_TASK_ID
Invalid task id.
Name
Description
taskId
The task identifier for the first application
to be launched.
Name
Description
PPSM_ERROR
Invalid taskId
PPSM_OK
Task started successfully
Personal Portable System Manager
Programmer’s Manual
27-3
ignored. Moreover, if several AppSwap(FALSE) are called, the same number
of AppSwap(TRUE) must be called before the task swapping is enabled.
Return Value
27.3
SubTaskCreate
Syntax
STATUS
SubTaskCreate
U16 numArg
,
Description
Creating a sub-task. Any task can use this tool to create sub-tasks. If the calling
task is itself a sub-task, the new sub-task will belong to its parent(i.e. the calling
sub-task and the newly created sub-task become siblings). If more than one
sub-task has been created under a parent, the new sub-task will be added to
the head of the sub task list. There is currently no limit on the number of sub-
task a parent task can have. However, the order of the sub-task chain may
change in run-time.
This routine accepts variable length input arguments. These arguments are
passed into the sub-task by PPSM, meaning that the actual sub-task routine
can accept input arguments.
Parameter
Name
Description
flag
Name
Description
None
Name
Description
taskId
procAddr
stackSize
numArg
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.