參數(shù)資料
型號(hào): PPSMMANUAL
英文描述: PPSMMANUAL
中文描述: PPSMMANUAL
文件頁數(shù): 73/187頁
文件大?。?/td> 1616K
代理商: PPSMMANUAL
第1頁第2頁第3頁第4頁第5頁第6頁第7頁第8頁第9頁第10頁第11頁第12頁第13頁第14頁第15頁第16頁第17頁第18頁第19頁第20頁第21頁第22頁第23頁第24頁第25頁第26頁第27頁第28頁第29頁第30頁第31頁第32頁第33頁第34頁第35頁第36頁第37頁第38頁第39頁第40頁第41頁第42頁第43頁第44頁第45頁第46頁第47頁第48頁第49頁第50頁第51頁第52頁第53頁第54頁第55頁第56頁第57頁第58頁第59頁第60頁第61頁第62頁第63頁第64頁第65頁第66頁第67頁第68頁第69頁第70頁第71頁第72頁當(dāng)前第73頁第74頁第75頁第76頁第77頁第78頁第79頁第80頁第81頁第82頁第83頁第84頁第85頁第86頁第87頁第88頁第89頁第90頁第91頁第92頁第93頁第94頁第95頁第96頁第97頁第98頁第99頁第100頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁
13-4
Programmer’s Manual
needs to be swapped in later by AdvSendMessage() with
SWAP_TASK_BACK_LATER, the current task will be put in the head of the queue
while it’s swapped out.
If the current task is parent task and there is no more message to be handled, the
system will check whether there is need to swap to next parent task in the quEach application running on PPSM is considered as a task. There are two types
If there is no more main task to be swapped in, the system will check from the
head of subtask to see whether any subtask needs to be swapped in. The subtask
to be swapped in may due to message in the queue or the task swapping flag in
the subtask is on.
If the current task is subtask and there is no more message to be handled, the
system will check whether there is need to swap to the next subtask in the heaThe task management tools enable applications to:
subtask queue. If not, system will check for the parent and then rest of the subtask
to see whether they need to be swapped in or they have message to handle. If no
more message or task to swap in, system will check the head of the main task
queue to see whether it needs to be swapped in.
Task switching can be disabled by calling AppSwap(FALSE). AppSwap() is a
function to stop task swapping while the system is transferring UART data or PPSM tasks.
other critical operations. If the AppSwap(FALSE) is called several times, the same
number of times of AppSwap(TRUE) must be called to let the task switching acMessage passing or task swapping are possible among any sub tasks, its parent
again.
13.4
Message Broadcasting
If the application programmer stores the task id, including main and sub tasks, into
a global list, message can be broadcasted to this list of task by using
AdvSendmessage() with or without task switching.
13.5
Task Control
If the application programmer stores the task id, including main and sub tasks, into
a global list, the task swapping sequence can be controlled by using
AdvSendMessage() with or without message passing. However, those task on the
task swapping queue will not be affected. So if a task is already on the task
swapping queue, nothing can be used to change it. For those task not being on
swapping queue, AdvSendMessage() can be used to put it into the task swapping
queue. The earlier the task is put into the task swapping queue, the higher priority
the task will be swapped in.
In task swapping, PPSM will check whether there is other main task to swap tdefined in SPC file so it cannot be freed. The panning screen created in this task
before checking the sub tasks of current main task.
The system will always check to see whether their are any messages need to be
handled within the family and swap to that member task to finish the job.
Sometimes the message in current task are cleared and SWAP_TASK is called
immediately to other member of the family. This task may be swapped bad later as
the memory for the last message is not free yet. Message is still in the task until
next IrptGetData() is called. And next task swapping for SWAP_TASK_LATER in
that task will be next IrptGetData() after the one freeing last message’s memory.
Personal Portable System Manager
Programmer’s Manual
Task MaTask Management
13-1
of PPSM tasks:
main task - application task that is stand alone
sub-task - task that is spawned off by another task either main or
sub task.
Create a main task or a sub-task
Start execution of a task
Terminate execution of a task
This chapter describes how applications can make use of PPSM tools to generate
task and any other main tasks. Changing of panning screen in main task will affect
the panning screen parameter of its sub tasks. Changing of panning screen in sub
task will affect the panning screen parameter of its main task and other sub tasks
belonging to the same main task.
Most applications fall into the main task category. Main tasks run independently of
each other. There cannot be more than 1 main task running at any given time.
They are created by the system tool TaskCreate() or AdvTaskCreate(). Once a
main task is created, there are three ways it can be started:
By using the system tool TaskStart()
By pressing the application icon
By messages sent from another task
System task is a special main task which is created in PPSMInit(). It’s never
terminated since creation. The stack used in this task comes from the stack
can be deleted and replaced by another global panning screen by the following
method:
Example 13-1
Sharing system task’s panning screen using global
variable
/* Global variable for sharing panning screen */
U32 gPanScreen;
STATUS TaskApp()
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.
相關(guān)PDF資料
PDF描述
PPT005-1G-WW-2V-FE DRUCKWANDLER
PPT020-1A-WF-2V-FE DRUCKWANDLER
PPT100-1A-WN-2V-FE DRUCKWANDLER
PPT100-1G-WN-2V-FE DRUCKWANDLER
PPT500-1G-WN-2V-FE DRUCKWANDLER
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PPSN815 制造商:Pyle 功能描述:10 ft Eight Channel RCA Phono Snake Cable
PPST2 制造商:Amphenol Audio 功能描述:
PP-ST-50MM 制造商:Black Box Corporation 功能描述:PRE-POLISHED ST CON 50 MIC MM BLACK 12PAK
PP-ST-SM 制造商:Black Box Corporation 功能描述:PRE-POLISHED ST CON SM BLUE 12PAK
PPST-SP 制造商:Duratool 功能描述:Self Tapping Screw Kit-Panhead (Size 6-10)