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

no-image

USBB17RX78K4-XXX

Manufacturer Part Number
USBB17RX78K4-XXX
Description
78K/4 series realtime OS
Manufacturer
NEC Electronics
Datasheet
4.1.10 can_wup (Cancel Wakeup Task)
40
[Function]
[Remarks]
[System call ID number]
[Parameter]
[Return parameter]
[Assembler format]
[C format]
Cancels a task wake-up request.
Stores the number of wake-up requests queued to the target task indicated by tskid to a specified pointer, and
at the same time cancels all wake-up requests. The area for p_wupcnt should be allocated by the user.
The own task is specified at tskid = 0.
can_wup = 9
tskid (Task Identifier)
p_wupcnt (Pointer of Wakeup Count)
E_OK
E_DMT
[Large model]
MOV
MOVW
MOV
MOVW
MOV
CALLT
C register = return parameter
ret = can_wup (p_wupcnt,tskid);
char
char
bnk0_b, #9
bnk0_d, #tskid
bnk0_e, #p_wupcnt
[40H]
:
*p_wupcnt;
*tskid;
bnk0_up, #tskid
bnk0_vp, #p_wupcnt
CHAPTER 4
Task ID (TCB top address)
Pointer storing the number of wake-up
requests queued
Normal termination
Specified task is in DORMANT state
[Small model]
MOV
MOVW
MOVW
CALLT
C register = return parameter
RX78K/IV SYSTEM CALL LIST
bnk0_b, #9
:
bnk0_up, #tskid
bnk0_vp, #p_wupcnt
[40H]
- 24 bits (large model)
- 16 bits (small model)
- 24 bits (large model)
- 16 bits (small model)

Related parts for USBB17RX78K4-XXX