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

📄 initcomp.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 <ansiprot.h>

@ifelse(@(sys.devices),,,`@transmorgify(osdevice.tpl, osdevice.c)')
@ifelse(@(tnx.enabled),yes,`@transmorgify(tnx.tpl, tnxcnfg.c)')
@ifelse(@(snx.enabled),yes,`@transmorgify(snx.tpl, snxcnfg.c)')
@ifelse(@(tpx.enabled),yes,`@transmorgify(tpxcnfg.tpl, tpxcnfg.c)')
@ifelse(@(esh.enabled),yes,`@transmorgify(esh.tpl, esh.c)')
@ifelse(@(ifx.enabled),yes,`@include(ifxcnfg.tpl)')
@ifelse(@(mpv.enabled),yes,`@include(mpvcnfg.tpl)')
@ifelse(@(rtl.heap_size),,@ifelse(@(snx.enabled),yes,const int rtl_heap_size = 75000;,const int rtl_heap_size = 10000;),const int rtl_heap_size = `@(rtl.heap_size)';)
extern void sc_call();
void (* const sys_sc_call_dummy)() = (void (*)())sc_call;

@ifelse(@(sys.vrtx32),yes,`const unsigned sys_v32_hlength = @(sys.vrtx32.heap.len);')@dnl

@ifelse(@(mpv.enabled),yes,`extern void sys_mpv_poll();')
void (* const sys_mpv_poll_ptr)() = @ifelse(@(mpv.enabled),yes,`(void (*)())sys_mpv_poll',`(void (*)())0');

@ifelse(@(rtl.enabled),yes,`extern void @(vrtxos.tcreate_hook)();
extern void @(vrtxos.tdelete_hook)();
extern void @(vrtxos.tswitch_hook)();

void (* const sys_rtl_hooks_tab[3])() = {
 	@(vrtxos.tcreate_hook),
        @(vrtxos.tdelete_hook),
        @(vrtxos.tswitch_hook)
};')@dnl

@ifelse(@(ifx.enabled),yes,`
void sys_initialize_ifx()
{
	sys_initialize_ifx_parameters(@(ifx.workspace_size), @(ifx.max_tasks), @(ifx.max_public_descriptors));

        @ifelse(@(ifx.486sbc_spc.drvr), yes, `
	/* initialize spc driver */
	if (ifx_driver("486SPC", spc_driver))
           sys_bsp_abort();')

	@ifelse(@(ifx.aha152xscsi.drvr), yes, `
	/* initialize aha 152x driver */
        if (ifx_driver("AHA152", aha_driver))
           sys_bsp_abort();')

	@ifelse(@(ifx.ncr53c710.drvr), yes, `
	/* initialize NCR SCSI driver */
        if (ifx_driver("NCRSCSI", NCR_SCSI_DeviceDriver))
           sys_bsp_abort();')

	@ifelse(@(ifx.ncr53c720.drvr), yes, `
	/* initialize NCR SCSI driver */
        if (ifx_driver("SCSI960", NCR_SCSI_DeviceDriver))
           sys_bsp_abort();')

	@ifelse(@(ifx.ncr53c8xx.drvr), yes, `
	/* initialize NCR SCSI driver */
        if (ifx_driver("SCSIPPC", NCR_SCSI_DeviceDriver))
           sys_bsp_abort();')

}')

@ifelse(@(nfs.enabled),yes,`
void sys_initialize_nfs()
{
    if (nfs_init(@(nfs.userid), @(nfs.groupid),@(nfs.umask), @(nfs.minuteswest)))
       sys_bsp_abort();
}')

⌨️ 快捷键说明

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