Download RI78V4 Real-Time Operating System User`s Manual: Coding

Transcript
RI78V4 V2.00.00
CHAPTER 12 SERVICE CALLS
can_act
Outline
Cancel task activation requests.
C format
ER_UINT can_act ( ID tskid );
Assembly format
MOV
CALL
A, #tskid
!!_can_act
Parameter(s)
I/O
Parameter
Description
ID number of the task for cancelling activation requests.
I
ID
tskid;
TSK_SELF:
Value:
Invoking task.
ID number of the task for cancelling activation requests.
Explanation
This service call cancels all of the activation requests queued to the task specified by parameter tskid (sets the
activation request counter to 0x0).
When this service call is terminated normally, the number of cancelled activation requests is returned.
Return value
Macro
Value
-
-
R20UT3375EJ0100 Rev.1.00
2015.03.25
Description
Normal completion (activation request count: positive value or 0).
Page 164 of 309