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

Transcript
RI850MP Ver.1.00.00
CHAPTER 13 SERVICE CALLS
Macro
T_MSG_PRI
Type
Description
-
See "13.3.10 Message (with priority) T_MSG_PRI" for details about
T_MSG_PRI
INTNO
unsigned short
Exception cause code
INTPMR
unsigned short
Register value
PE_ID
unsigned char
PE number
13.2.2
Return values
The return values are defined in the header files "errcd.h" and "options.h" that are called from standard header file "kernel.h".
Table 13-2. Return Values
Macro
Num.
Description
E_OK
0
Normal termination
E_NOSPT
-9
Unsupported function
E_PAR
-17
Parameter is invalid
E_ID
-18
ID is invalid
E_CTX
-25
Context error
E_ILUSE
-28
Invalid service call use
E_OBJ
-41
Object status error
E_QOVR
-43
Queuing overflow
E_RLWAI
-49
Forced cancellation of WAITING state
E_TMOUT
-50
Polling failure or timeout
TRUE
1
True
FALSE
0
False
NULL
0
Invalid pointer
R20UT0519EJ0100 Rev.1.00
Apr 01, 2011
Page 43 of 218