⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vrtxcals.tpl

📁 VRTX 商用嵌入式实时操作系统
💻 TPL
字号:
/***************************************************************************
*
*		Copyright (c) 1992 MICROTEC RESEARCH INCORPORATED.
*
*	All rights reserved. MICROTEC RESEARCH's source code is an unpublished
*	work and the use of a copyright notice does not imply otherwise.
*	This source code contains confidential, trade secret material of
*	MICROTEC RESEARCH. Any attempt or participation in deciphering, decoding,
*	reverse engineering or in any way altering the source code is
*	strictly prohibited, unless the prior written consent of
*	MICROTEC RESEARCH is obtained.
*
*
*	Module Name:		%M%
*
*	Identification:		%Z% %I% %M%
*
*	Date:			%G%  %U%
*
****************************************************************************
*/

#include <vrtxil.h>

/* contains reference to all the VRTX system calls that are configured to be in OS */

@define(vrtx_calls1,`sc_tcreate,sc_tecreate, sc_tdelete, sc_tsuspend, sc_tresume, sc_tpriority, sc_tinquiry, sc_gblock, sc_rblock, sc_post, sc_pend, sc_gtime, sc_stime, sc_delay, sc_getc, sc_putc, sc_waitc, ui_timer, ui_rxchr, ui_txrdy, sc_tslice, sc_fcreate, sc_fdelete, sc_fpend, sc_fpost, sc_fclear, sc_finquiry, sc_qjam, sc_qecreate, sc_lock, sc_unlock, sc_pcreate, sc_pextend, sc_accept, sc_qpost, sc_qcreate')@dnl
@define(vrtx_calls2,`sc_qpend, sc_qaccept, sc_qinquiry, sc_screate, sc_sdelete, sc_spend, sc_spost, sc_sinquiry, vrtx_init, vrtx_go, sc_acceptc, sc_gclock, sc_sclock, sc_adelay, sc_halloc, sc_hcreate, sc_hdelete, sc_hfree, sc_hinquiry, sc_maccept, sc_mcreate, sc_mdelete, sc_minquiry, sc_mpend, sc_mpost, sc_pdelete, sc_pinquiry, sc_qbrdcst, sc_qdelete, sc_saccept, sc_gversion, sc_call')@dnl
@define(vrtx_calls_one,`@ifelse(@(vrtx.$1),yes,``	'(void(*)())$1,
')')@dnl
@define(vrtx_calls_all,`@ifelse($1,,,`@vrtx_calls_one($1)@vrtx_calls_all(@shift($@))')')@dnl
@dnl
void (* const sys_syscall_table[])() =
{
@vrtx_calls_all(@vrtx_calls1)@dnl
@vrtx_calls_all(@vrtx_calls2)@dnl
	0
};
@ifelse(@(sys.vrtx32),yes,,``
void v32_trap_handler()
{
}
'')@dnl
@ifelse(@(vrtx.sc_tdelete),yes,,``
void
#ifdef __STDC__
sc_tdelete(int tid, int code, int *errp)
#else
sc_tdelete(tid, code, errp)
int tid, code, *errp;
#endif
{
    *errp = ER_ISC;
}
'')@dnl

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -