
5. TUTORIAL
B–61863E–1/06
GENERAL
44
(6) Modification.
The difference from (1) is described below.
D task1.c
The part to wait for getting semaphore before tool number
specification is changed, and the part to release the semaphore
after the change are added.
D task2.c
The part to make semaphore at power turning on is added.
The part wait for getting semaphore before count up the run time
and the part release the semaphore after counting up are added.
(7) Procedure for execution.
Same to (3).
(8) Execution.
Same to (4).
If tool number specified to changes from one of the tool No.1 to 4 to
the number one of those, run time of other tool does not increase while
changing the number.
In this section, use the mailbox for intertask communication instead of
common memory which is used in 5.9.1, 5.9.2.
In the section after 5.9.1, common memory has been used for intertask
communication. In this section, mailbox is used to show other way of
intertask communication.
The flag which indicates if run time is over the limit of the applcation of
5.9.1 is replaced with mailbox. Other data is passed using the common
memory.
The files are in the directory \tutorial\5–9–3.
(1) File confirmation
Please use the files (ctl.c and tutorial.bld) in the directories as listed
below.
The files in \tutorial\5–9–3\rc for PMC–SC/SC3/SC4.
The files in \tutorial\5–9–3\nb for PMC–NB/NB2.
D ctl.c Link control statement
D softkey.c Source code
D task1.c Source code
D task1.con Command file for binder
D task2.c Source code
D task2.con Command file for binder
D task3.c Source code
D task3.con Command file for binder
D common.c Source code
D common.con Command file for binder
D tutorial.bld Build file
D tutorial.con Command file for binder
D tutorial.h Header file
5.9.3
Mail Box