📄 sys_conf.h
字号:
/*---------------------------------------------------------------------*//* pROBE+: The following set of macros control which features will be *//* built in to the pROBE+ Target Agent. pROBE+ can run either in *//* console mode (dumb terminal) or as a back-end to a Source Level *//* Debugger on the host. Not all modules are needed for all cases.*//* By eliminating modules you can save memory. The definition of *//* the modules are as follows: *//* *//* SC_PROBE - pROBE+ core module. This must always be present if *//* any part of pROBE+ is to be used. Setting this to NO will *//* force all other pROBE+ modules to NO (even if they say YES *//* in this file). *//* *//* SC_PROBE_CIE - pROBE+ Console Executive. Set this to YES if you *//* wish to control pROBE+ from a dumb terminal. If you only *//* 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, the *//* Target Agent Manager module SC_TAM must be set to YES. *//* *//* SC_PROBE_HELP - pROBE+ online help module. Setting this define *//* to YES provides the user with pROBE+ commands, when in *//* stand-alone mode. *//*---------------------------------------------------------------------*//* SC_TAM - Target Agent Manager. This module is used to enable *//* communication between a host and the target agents. The *//* target agents are SC_PROBE_DEBUG, and TAM_HOSTIO_AGENT. *//* SC_TAM must be set to YES to use any of the target agents. *//* *//* IF SC_TAM is YES and the host is connected to the target *//* via network, you must set SC_PNET to YES. If the host is *//* connected to the target via a serial connection, must *//* select the proper serial port via SC_RBUG_PORT. Note if a *//* serial port is used by the TAM for the host 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_PHILE through SC_EVLOG - 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_PSOSP NO /* pSOS+ real-time protected 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 agent) */#define SC_PROBE_HELP YES /* pROBE+ Help command Handler. */#define SC_TAM YES /* Target Agent Manager. */#define SC_PHILE NO /* pHILE+ file system manager */#define SC_PHILE_PHILE NO /* pHILE+ (pHILE+ real-time file sys) */#define SC_PHILE_MSDOS NO /* 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 YES /* 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 YES /* 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_IOSTREAM NO /* C++ I/O streams package. */#define SC_POSIX NO /* POSIX component (core) */#define SC_POSIX_MESSAGE_PASSING NO /* POSIX Named Message Queues */#define SC_POSIX_SEMAPHORES NO /* POSIX Named Semaphores */#define SC_EXM NO /* Exception Manager */#define SC_EVLOG NO /* Event Log Services *//*---------------------------------------------------------------------*//* 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 SC_ADDRCHK is set to YES, then address validation takes place *//* in the bindings before making system calls. If set to NO, no *//* validation takes place. *//*---------------------------------------------------------------------*/#define SC_ADDRCHK NO /* Address validation for system calls*//*---------------------------------------------------------------------*//* System wide maximum name length. *//*---------------------------------------------------------------------*/#define SC_NAMELEN 8/*---------------------------------------------------------------------*//* 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. *//* *//* If SC_PMONT SC_AUTOINIT will be automatically redefined to 1 because*//* pMONT needs drivers to be automatically initialized. *//* *//*---------------------------------------------------------------------*/#define SC_AUTOINIT IO_AUTOINIT/***********************************************************************//* *//* 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, *//* 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 (0 + 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 /* Disable the LAN interface */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -