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

no-image

USBB17RX78K4-XXX

Manufacturer Part Number
USBB17RX78K4-XXX
Description
78K/4 series realtime OS
Manufacturer
NEC Electronics
Datasheet
4.1.3 ter_tsk (Terminate Task)
[Function]
[Remarks]
[System call ID number]
[Parameter]
[Return parameter]
[Assembler format]
[C format]
Forcibly aborts another task.
This system call forcibly aborts the task specified by tskid.
If the specified task is placed in a queue, the task is released from the queue when the “ter_tsk” system call
has been issued. Therefore, the task is released from the wait state before it is terminated.
“ter_tsk” does not automatically release the resources that the task has acquired before.
resources before terminating the task.
This system call cannot specify the task itself that issues it.
ter_tsk = 2
tskid (Task Identifier)
E_OK
E_DMT
[Large model]
MOV
MOVW
MOV
CALLT
C register = return parameter
ret = ter_tsk(tskid);
char
bnk0_b, #2
bnk0_up, #tskid
bnk0_d, #tskid
[40H]
:
*tskid;
CHAPTER 4
Task ID (TCB top address)
Normal termination
Specified task is in DORMANT state
[Small model]
MOV
MOVW
CALLT
C register = return parameter
RX78K/IV SYSTEM CALL LIST
bnk0_b, #2
bnk0_up, #tskid
[40H]
:
- 24 bits (large model)
- 16 bits (small model)
Release the
33

Related parts for USBB17RX78K4-XXX