📄 sys_conf.h
字号:
/* use a source debugger and/or pRISM+, you can save memory by *//* setting it to NO. If it is YES, you also need to sepcify the *//* serial port used by the pROBE+ via SC_PROBE_CONSOLE. *//* *//* SC_PROBE_DISSAM - pROBE+ Console Dissassembler. If you set *//* SC_PROBE_CIE to YES and wish to view disassembled memory, set *//* this to YES as well. If you are using a host debugger and/or *//* pRISM+, you can save memory by setting this to NO. *//* *//* SC_PROBE_QUERY - pROBE+ Query Services which provides the pSOS+ *//* awareness. This module allows you to query the information *//* about pSOS+ obejects, issue a console-induced manual break *//* or halt-request from the host debugger, set the task-specific *//* breakpoints, service call breakpoints and task-dispatch *//* breakpoints. Unless you have severe memory restrictions or *//* your application does not use pSOS+ kernel, it is suggested *//* that you set this to YES. *//* *//* SC_PROBE_DEBUG - pROBE+ Remote Debug Module. This module is *//* used to enable communication between a host based source *//* debugger and/or pRISM+ to the pROBE+ target agent using a *//* light weight binary protocol. This must be set to YES to *//* enable pROBE+ to communicate with a source debugger or the *//* pRISM+ host tools. It can be set to NO if you only use the *//* pROBE+ console (dumb terminal) mode. If it is YES and the *//* host debuuger is connected the target via network, you have *//* to set the SC_PNET or SC_PNA to YES. If the host debugger *//* is using the serial connection, you have to select the proper *//* serial port via SC_RBUG_PORT. Note if a serial port is used *//* by the pROBE+ for the host debugger connection, this port *//* should not be used by the application except for *//* SC_PROBE_CONSOLE. For example, you should not set *//* SC_RBUG_PORT and SC_APP_CONSOLE to the same serial port *//* unless you don't use the host debugger when the application *//* is running. *//* *//* SC_PROBE_HELP - pROBE+ online help module. Setting this define *//* to YES provides the user with pROBE+ commands, when in *//* stand-alone mode. *//*---------------------------------------------------------------------*//* SC_PHILE through SC_POSIX_TIMERS - Setting the definition line to*//* YES will cause that component to be built into the system. *//* Setting it to NO means the component will NOT be put into the *//* system. *//* *//***********************************************************************/#define SC_PSOS YES /* pSOS+ real-time kernel */#define SC_PSOSM NO /* pSOS+ real-time multiproc kernel */#define SC_PSOS_QUERY NO /* pSOS+ Query Services */#define SC_PROBE YES /* pROBE+ (processor svcs) */#define SC_PROBE_DISASM YES /* pROBE+ (disassembler) */#define SC_PROBE_CIE YES /* pROBE+ (console executive) */#define SC_PROBE_QUERY YES /* pROBE+ (query services) */#define SC_PROBE_DEBUG YES /* pROBE+ (debug interface executive) */#define SC_PROBE_HELP YES /* pROBE+ Help command Handler. */#define SC_PHILE NO /* pHILE+ file system manager */#define SC_PHILE_PHILE YES /* pHILE+ (pHILE+ real-time file sys) */#define SC_PHILE_MSDOS YES /* pHILE+ (MS-DOS FAT file system) */#define SC_PHILE_NFS NO /* pHILE+ (NFS client) */#define SC_PHILE_CDROM NO /* pHILE+ (ISO 9660 CD-ROM file sys) */#define SC_PREPC YES /* pREPC+ C run-time library */#define SC_PNA YES /* pNA+ TCP/IP networking manager */#define SC_PNET NO /* pNET Library for BOOT ROMS */#define SC_PRPC NO /* pRPC+ RPC component */#define SC_PSE_PRPC NO /* pRPC+ RPC component Over pSE+ */#define SC_PSE NO /* pSE+ streams component */#define SC_PSKT NO /* pSKT+ SKT library component */#define SC_PTLI NO /* pTLI+ TLI library component */#define SC_PMONT NO /* pMONT+ */#define SC_PLM NO /* pLM+ Shared library manager */#define SC_PROFILER NO /* RTA profiler configuration */#define SC_RTEC NO /* RTA run-time error checker library */#define SC_CXX_PKG NO /* C++ Support Package */#define SC_POSIX NO /* POSIX component (core) */#define SC_POSIX_MESSAGE_PASSING NO /* POSIX (Message Queue svcs) */#define SC_POSIX_SEMAPHORES NO /* POSIX (semaphore svcs) */#define SC_POSIX_THREADS NO /* POSIX (pthread svcs) */#define SC_POSIX_TIMERS NO /* POSIX (clock and timer svcs)*//*---------------------------------------------------------------------*//* If SC_QBIND is set to YES then the Quick bindings for pSOS+ System *//* calls will be used. If it is set to NO then the normal bindings *//* will be used. *//* *//* Quick bindings will not be supported for the applications with *//* USER mode Tasks. So make sure your Application does not have any *//* USER mode Tasks. *//*---------------------------------------------------------------------*/#define SC_QBIND NO /* Quick bindings for pSOSystem calls*//*---------------------------------------------------------------------*//* If set to IO_AUTOINIT device drivers that are installed be the *//* InstallDriver function will have their autoinit field set. This *//* will cause pSOS+ call the drivers initialization function when *//* pSOS+ starts up. The de_init call will not have to be called for *//* each driver if this is done. *//* *//* NOTE: This Auto Initialization will not work on all drivers. *//* Setting IO_AUTOINIT only effects drivers that can use the Auto *//* Initialization feature. *//* *//* If set to IO_NOAUTOINIT no automatic driver initialization will *//* happen. *//*---------------------------------------------------------------------*/#define SC_AUTOINIT IO_AUTOINIT/*---------------------------------------------------------------------*//* If SC_PMONT SC_AUTOINIT will always be set to 1 because pMONT needs *//* drivers to be automatically initialized. *//*---------------------------------------------------------------------*/#if SC_PMONT #undef SC_AUTOINIT #define SC_AUTOINIT IO_AUTOINIT#endif/***********************************************************************//* *//* S E R I A L C H A N N E L C O N F I G U R A T I O N *//* *//* * SD_DEF_BAUD specifies the default baud rate to be used for the *//* serial channels *//* * SC_APP_CONSOLE specifies the serial channel number (starting *//* from 1) which should be used for the application's "console". *//* * SC_PROBE_CONSOLE specifies the serial channel number (starting *//* from 1) which pROBE+ should use to display output and receive *//* commands, or to communicate with the host debugger. *//* * SC_RBUG_PORT specifies the serial channel number (starting *//* from 1) which will be used for the connnect between the host *//* debugger and the pROBE+ on the target. This is not needed if *//* the host debugger is using the network connection. It can be *//* disabled by using a value of 0. Note the port specified by *//* SC_RBUG_PORT port should not be used by the application except *//* for SC_PROBE_CONSOLE. For example, you should not set *//* SC_RBUG_PORT and SC_APP_CONSOLE to the same serial channel *//* unless you don't use the host debugger when the application is *//* running. *//* *//* Above three macros SC_PROBE_CONSOLE, SC_APP_CONSOLE and *//* SC_RBUG_PORT uses SERIAL_DRVRNUM(0) as default. This means that *//* the Low-Level Serial Driver 0 (1) is being used default. *//* *//* If you need to use another driver for any of the above macros *//* and another macro for pMONT PM_DEV, You need to change "0" to *//* the driver number you want. Consult the "README" file in BSP *//* directory for number of different drivers supported and for the *//* SERIAL_DRVRNUM mapping for those drivers. *//* *//***********************************************************************/#define SD_DEF_BAUD 9600#define SC_APP_CONSOLE (1 + SERIAL_DRVRNUM(0))#define SC_PROBE_CONSOLE (1 + SERIAL_DRVRNUM(0))#define SC_RBUG_PORT (1 + SERIAL_DRVRNUM(0))/***********************************************************************//* SC_NumNon_pSOSChan is the number of non-pSOS users of the serial *//* channels. These are users that will be initiated before pSOS, *//* such as pROBE. *//* *//* NOTE: These channels will not be closed on a soft reset. *//***********************************************************************/#if (SC_RBUG_PORT && SC_PROBE_CONSOLE && (SC_PROBE_CONSOLE != PCCON))#define SC_NumNon_pSOSChan 2#else#define SC_NumNon_pSOSChan 1#endif/***********************************************************************//* *//* L A N C O N F I G U R A T I O N *//* *//* *//***********************************************************************/#define SD_LAN1 NO /* Enable the LAN interface */#define SD_LAN1_IP 0x00000000 /* target IP */#define SD_LAN1_SUBNET_MASK 0x00000000 /* subnet mask for the node *//*---------------------------------------------------------------------*//* Maximum number of multicast addresses to be used by the lan *//* interface. Must not exceed maximum supported by the lan driver. *//*---------------------------------------------------------------------*/#define SC_LAN1_NMCAST 0/***********************************************************************//* *//* B U S C O N F I G U R A T I O N *//* *//* *//***********************************************************************/#define SD_VME_BASE_ADDR 0x01000000 /* VME bus base address *//***********************************************************************//* *//* S H A R E D M E M O R Y C O N F I G U R A T I O N *//* *//* *//***********************************************************************//*---------------------------------------------------------------------*//* If you want to build a "Shared Memory Interface" for the network or *//* multi-processing pSOS+m, set SD_SM_NODE to the node number of this *//* node ( a non-zero value). *//*---------------------------------------------------------------------*/#define SD_SM_NODE 0 /* Node number for this node *//*---------------------------------------------------------------------*//* Shared memory network interface (SMNI) - SC_NISM_LEVEL should be 1 */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -