def_tex
ER def_tex (ID tskid, T_DTEX *pk_dtex );
typedef struct t_dtex { ATR texatr; /*Task exception handling routine attribute*/ FP texrtn; /*Task exception handling routine start address*/ } T_DTEX; |
This service call defines a task exception handling routine for the task indicated by tskid according to the content of pk_dtex. If a task exception handling routine has already been defined for the task, this service call updates the definition contents.
When NULL is specified for pk_dtex, the definition of the task exception handling routine for the task is cancelled. At this time, the task pending exception code is cleared to 0, and the task exception handling is disabled.
1 ) Task ID (tskid)
Specify the task ID to define a task exception handling routine for tskid. Specifying tskid = TSK_SELF ( = 0 ) means that the invoking task itself is specified.
Specify the task ID to define a task exception handling routine for tskid. Specifying tskid = TSK_SELF ( = 0 ) means that the invoking task itself is specified.
- TA_HLNG ( = 0x0000)
Only C-language is supported for task exception handling routine description language.
Only C-language is supported for task exception handling routine description language.
3 ) Task exception handling routine start address (texrtn)
Specify the task exception handling routine start address for texrtn.
Specify the task exception handling routine start address for texrtn.