
CHAPTER 13 SERVICE CALLS
User’s Manual U14833EJ2V0UM
112
13.5 Macros
When describing application programs such as tasks or interrupt handlers, the following macros can be treated as
defined constants, and therefore cannot be redefined by the user. These definitions are made in the header file
kernel.h.
For items whose Value column is blank, refer to the page on which that service call is defined. CF in the Value
column indicates that the value is determined by the configurator.
Table 13-2. Macro List (1/2)
Macro Name
Value
Meaning
TA_
XXX
Object attribute
TWF_
XXX
Service call operating mode
TTS_
XXX
Object state
TSK_SELF
0
Self task specification
TSK_NONE
0
No corresponding task exists
TPRI_SELF
0
Self task base priority specification
TPRI_INI
0
Specification of task priority at activation
MERCD(ER ercd)
Return main error code section of the error code ercd (currently always –1)
SERCD(ER ercd)
Return sub error code section of the error code ercd (value indicated in
error code list)
ERCD(ER mercd, ER sercd)
Generates and returns an error code from main error code mercd and sub-
error code sercd.
TMIN_TPRI
1
Minimum value of task priority order (highest priority)
TMAX_TPRI
CF
Maximum value of task priority order (lowest priority)
TMIN_MPRI
1
Minimum value of message priority order (highest priority)
TMAX_MPRI
0x7fff
Maximum value of message priority order (lowest priority)
TKERNEL_MAKER
0x000d
Kernel manufacturer code (NEC Electronics)
TKERNEL_PRID
0x0000
Kernel identification number
TKERNEL_SPVER
0x0400
Version number of
μ
ITRON Specification
TKERNEL_PRVER
0x0400
Version number of kernel
TMAX_ACTCNT
127
Maximum queue limit for activation requests
TMAX_WUPCNT
127
Maximum queue limit for wakeup requests
TMAX_SUSCNT
127
Maximum queue limit for suspend requests
TBIT_TEXPTN
32
Number of bits in task exception source
TBIT_FLGPTN
32
Number of bits in event flag
TTIC_NUME
CF
Numerator of time tick cycle
TTIC_DENO
1
Denominator of time tick cycle
TSZ_DTQ(UINT dtqcnt)
cre_dtq page reference
TSZ_MPRIHD
cre_mbx page reference
TSZ_MPF
cre_mpf page reference
TSZ_MPL
cre_mpl page reference
TMAX_MAXSEM
0x7fffffff
Maximum value of maximum number of semaphores