USBB17RX78K4-XXX NEC Electronics, USBB17RX78K4-XXX Datasheet - Page 58

no-image

USBB17RX78K4-XXX

Manufacturer Part Number
USBB17RX78K4-XXX
Description
78K/4 series realtime OS
Manufacturer
NEC Electronics
Datasheet
4.2.8 wai_sem (Wait on Semaphore)
[Function]
[Remarks]
[System call ID number]
[Parameter]
[Return parameter]
[Assembler format]
[C format]
Executes wait manipulation for a semaphore (P instruction).
If the count value of the semaphore indicated by semid is 1 or more, the count value of the semaphore is
decremented by one, and to the task that issued this system call. If the count value of the semaphore is 0, the
count value of the semaphore is not changed, and the task that has issued this system call is placed in the
WAIT state.
wai_sem = 17
semid (Semaphore Identifier)
E_OK
[Large model]
MOV
MOVW
MOV
CALLT
C register = return parameter
ret = wai_sem(semid);
char
bnk0_b, #17
bnk0_up, #semid
bnk0_d, #semid
[40H]
:
*semid;
CHAPTER 4
Semaphore ID (Semaphore top address)
Normal termination
[Small model]
MOV
MOVW
CALLT
C register = return parameter
RX78K/IV SYSTEM CALL LIST
bnk0_b, #17
[40H]
:
bnk0_up, #semid
- 24 bits (large model)
- 16 bits (small model)
49

Related parts for USBB17RX78K4-XXX