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

📄 vosintbl.tpl

📁 VRTX 商用嵌入式实时操作系统
💻 TPL
字号:
/***************************************************************************
*
*		Copyright (c) 1993 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%
*
****************************************************************************
*/

/* Kernel-independent system configuration options */

#include <syskind.h>
#include <sysmhdlr.h>


/* putc definition for System printf (sys_kprintf) */

extern void @(sys.kprintf.putc)(_ANSIPROT1(char));

void (* const sys_kprintf_putc)(_ANSIPROT1(char)) = @(sys.kprintf.putc);

/* System Console Configuration. */
@ifelse(@(sys.console.enabled),yes,`
/* Name of console logical I/O device */

const char sys_console_name[] = "@(sys.console.name)";
/*** for backwards compatibility with ESH, should be removed ***/
char * const sys_console = "@(sys.console.name)";

/* Console callouts */

@ifelse(@(sys.console.txrdy.callout),0,,`extern void @(sys.console.txrdy.callout)(_ANSIPROT4(logio_device_id_t, logio_int_event_t, void *, cpu_context_ptr));
')@dnl
@ifelse(@(sys.console.rxchr.callout),0,,`extern void @(sys.console.rxchr.callout)(_ANSIPROT4(logio_device_id_t, logio_int_event_t, void *, cpu_context_ptr));
')@dnl
@ifelse(@(sys.console.ttyerr.callout),0,,`extern void @(sys.console.ttyerr.callout)(_ANSIPROT4(logio_device_id_t, logio_int_event_t, void *, cpu_context_ptr));
')@dnl
void (* const sys_console_txrdy_callout)(_ANSIPROT4(logio_device_id_t, logio_int_event_t, void *, cpu_context_ptr)) = @(sys.console.txrdy.callout);
void (* const sys_console_rxchr_callout)(_ANSIPROT4(logio_device_id_t, logio_int_event_t, void *, cpu_context_ptr)) = @(sys.console.rxchr.callout);
void (* const sys_console_ttyerr_callout)(_ANSIPROT4(logio_device_id_t, logio_int_event_t, void *, cpu_context_ptr)) = @(sys.console.ttyerr.callout);
')@dnl

/* System Timer Configuration. */
@ifelse(@(sys.timer.enabled),yes,`/* Timer callouts */

@ifelse(@(sys.timer.callout),0,,`extern void @(sys.timer.callout)(_ANSIPROT4(logio_device_id_t, logio_int_event_t, void *, cpu_context_ptr));
')@dnl
void (* const sys_timer_callout)(_ANSIPROT4(logio_device_id_t, logio_int_event_t, void *, cpu_context_ptr)) = @(sys.timer.callout);
')@dnl

/* Cache and MMU */

#if defined(MC68020) || defined(MC68040) || defined(I386) || defined(SPARC) || defined(AMD29K) || defined(I960) || defined(PPC)
const char sys_cache_enabled = @ifelse(@(sys.cache.enabled),yes,1,0);
const cpu_cm_cd_t sys_cache_designator = @ifelse(@(sys.cache.enabled),yes,@(sys.cache.designator),0);
const unsigned sys_cache_mode = @ifelse(@(sys.cache.enabled),yes,@(sys.cache.mode),0);
#endif /* MC68020 || MC68040 || I386 || SPARC */
#if defined(MC68020) || defined(MC68040) || defined(I386) || defined(I960) || (defined(PPC) && !defined(PPC603))
const char sys_mmu_enabled = @ifelse(@(sys.mmu.enabled),yes,1,0);
const char sys_ttr_enabled = @ifelse(@(sys.ttr.enabled),yes,1,0);
const unsigned sys_mmu_page_table_size = @ifelse(@(sys.mmu.enabled),yes,@(sys.mmu.page_table_size),0);
const cpu_cm_mmu_mode_t sys_mmu_mode =@ifelse(@(sys.mmu.enabled),yes,@(sys.mmu.mode),0);
#endif /* MC68020 || MC68040 || I386 */

#if defined(PPC860)
/* Floating point emulation software */
const char sys_fpe_enabled = @ifelse(@(sys.fpe.enabled),yes,1,0);
#endif

#ifdef SPARC
const unsigned long cpu_nwindows = @(cpu.sparc.nwindows);
#endif

/* System Initialization and Run-Time message Handler. */

extern void @(sys.message.handler)(_ANSIPROT2(unsigned long, unsigned long));

void (* const sys_message_handler)(_ANSIPROT2(unsigned long, unsigned long)) = @(sys.message.handler);

/* Memory Console. */
msg_struct sys_msg_mem_console[@(sys.max.msg.count)];
const unsigned short sys_max_msg_count = @(sys.max.msg.count);

/* Message verbosity level. Ignored for errors. */
const unsigned short sys_msg_verbosity = @(sys.msg.verbosity); 

@ifelse(@(board.tool.type),ix86,`const char sys_version[] = "VRTXsa x86/fpm Version 4.3";
',`@syscmd(`echo const char sys_version[] = >> sysintbl.c ; head -1 $SPECTRA/VERSION | sed s/\^/\"/ | sed s/\$/\"\;/ >> sysintbl.c')')

⌨️ 快捷键说明

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