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

no-image

USBB17RX78K4-XXX

Manufacturer Part Number
USBB17RX78K4-XXX
Description
78K/4 series realtime OS
Manufacturer
NEC Electronics
Datasheet
4.1.5 rot_rdq (Rotate Ready Queue)
[Function]
[Remarks]
[System call ID number]
[Parameter]
[Return parameter]
[Assembler format]
[C format]
irot_rdq (Rotate Ready Queue for Interrupt)
Rotates the ready queue of the specified priority.
Rotates the ready queue of the priority indicated by tskpri. Consequently, the task placed at the top of the
ready queue is placed at the end of the queue and execution of the task of the same priority is changed.
When tskpri = 0, the ready queue of the priority of the task itself is rotated. Therefore, this system call can be
issued to relinquish execution privileges so that the task itself is placed at the end of the ready queue.
However, irot_rdq cannot specify tskpri = 0.
If no task exists in the ready queue of the specified priority, nothing is executed, but this does not result in an
error.
rot_rdq = 4
tskpri (Task Priority)
E_OK
On issuing rot_rdq
[Large/Small model]
MOV
MOV
CALLT
C register = return parameter
On issuing irot_rdq
[Large/Small model]
MOV
CALLT
C register = return parameter
On issuing rot_rdq
ret = rot_rdq (tskpri);
char
bnk0_v, #4
bnk0_e, #tskpri
[40H]
:
E, #tskpri
[44H]
:
tskpri;
CHAPTER 4
On issuing irot_rdq
Task priority
Normal termination
ret = irot_rdq (tskpri);
char
RX78K/IV SYSTEM CALL LIST
tskpri;
- 8 bits
35

Related parts for USBB17RX78K4-XXX