- 100 -
5.3 Synchronization & Communication Function (Semaphore)
Specifications of the semaphore function of MR100 are listed in Table 5.5.
Table 5.5 Specifications of the Semaphore Function
No. Item
Content
1 Semaphore
ID
1-255
2
Maximum number of resources
1-65535
TA_FIFO:
Tasks enqueued in order of FIFO
3 Semaphore
attribute
TA_TPRI:
Tasks enqueued in order of priority
Table 5.6 List of Semaphore Function Service Call
System State
No. Service
Call
Function
T N E D
U
L
1 sig_sem
[S][B]
O O O
O
2 isig_sem
[S][B]
Releases semaphore resource
O O O
O
3 wai_sem
[S][B]
Acquires
semaphore
resource
O O O
4 pol_sem
[S][B]
O O O
O
5 ipol_sem
Acquires semaphore resource(polling)
O O O
O
6 twai_sem
[S]
Acquires semaphore resource(with
timeout)
O O O
7 ref_sem
O
O
O
O
8 iref_sem
References semaphore status
O O O
O
Notes:
•
[S]: Standard profile service calls
[B]: Basic profile service calls
•
Each sign within " System State " is a following meaning.
♦
T: Can be called from task context
♦
N: Can be called from non-task context
♦
E: Can be called from dispatch-enabled state
♦
D: Can be called from dispatch-disabled state
♦
U: Can be called from CPU-unlocked state
♦
L: Can be called from CPU-locked state