📄 sys_conf.h
字号:
#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_PROBE_HOST specifies the serial channel number (starting *//* from 1) which should be used for the pROBE+ "host" channel. *//* This is not normally required, so it can be disabled by *//* using a value of 0. The host channel is explained in the *//* pROBE+ User's Manual. *//* *//***********************************************************************/#define SD_DEF_BAUD 9600#define SC_APP_CONSOLE PCCON#define SC_PROBE_CONSOLE PCCON#define SC_RBUG_PORT 0/***********************************************************************//* SC_NumNon_pSOSChan is the number of non pSOS users of 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 YES#define SD_LAN1_IP 0x80e001b7#define SD_LAN1_SUBNET_MASK 0xffffff00/*---------------------------------------------------------------------*//* 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/***********************************************************************//* *//* 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 *//* *//* *//***********************************************************************//***********************************************************************//* *//* B U S C O N F I G U R A T I O N *//* *//* *//***********************************************************************/#define SD_VME_BASE_ADDR 0x01000000/*---------------------------------------------------------------------*//* If you want to build a Shared Memory Interface for the network or *//* multi-processing pSOS+m, set SD_SM_NODE (a non-zero value) to the *//* node number of THIS node. *//*---------------------------------------------------------------------*/#define SD_SM_NODE 0/*---------------------------------------------------------------------*//* Shared memory network interface - SC_NISM_LEVEL should be 1 if this *//* will be the FIRST system to use the SMNI on this board. It should *//* be 2 if this will not be the first system to use the SMNI on this *//* board. Usually this means that SC_NISM_LEVEL should be 1 if you *//* are building Boot ROMs, and 2 for a system that will be downloaded *//* and started using the Boot ROMs. See the comments at the beginning *//* of drivers/ni_smem.c for more explanation. *//*---------------------------------------------------------------------*/#define SD_NISM NO#define SD_NISM_IP 0x00000000#define SD_NISM_DIRADDR 0x00000400#define SC_NISM_BUFFS 30#define SC_NISM_LEVEL 2#define SD_NISM_SUBNET_MASK 0/*---------------------------------------------------------------------*//* If you want to build a multi-node pSOS+m system, set SD_KISM *//* to the number of nodes in the system. *//*---------------------------------------------------------------------*/#define SD_KISM 0#define SD_KISM_DIRADDR 0x00000580/***********************************************************************//* *//* M I S C E L L A N E O U S N E T W O R K I N G *//* P A R A M E T E R S *//* *//***********************************************************************/#define SD_DEF_GTWY_IP 0/***********************************************************************//* SC_RAM_SIZE *//* *//* Normally, pSOSystem uses ALL of the memory remaining on a board for *//* dynamic allocation ("region 0"). You may override this by setting *//* SC_RAM_SIZE to a non-zero value. If you do, pSOSystem will not *//* touch any memory after address (BSP_RAM_BASE + SC_RAM_SIZE - 1). *//* *//* NOTE: This is useful when making a BOOT ROM and you want to ensure *//* that the ROM's RAM area does not overflow the space alloted for it. *//***********************************************************************/#define SC_RAM_SIZE 0/***********************************************************************//* *//* I / O D E V I C E S *//* *//* Each device may be included in the system by specifying a major *//* number for it, which determines its slot in the pSOS+ I/O switch *//* table. To leave a device driver out of the system, use NO for *//* the major number. *//* *//* Note the following: *//* * Major device 0 is reserved and cannot be used for any of these *//* devices. Setting a device number to 0 here is the same as NO. *//* * No device number may be higher than SC_DEVMAX (SC_DEVMAX may *//* be increased, if desired) *//* * The lines defining the symbols DEV_SERIAL, DEV_TIMER, etc, *//* should not be changed. These are for use by application *//* programs as the "device number" parameter on de_* calls. *//* *//***********************************************************************/#define SC_DEV_SERIAL 1 /* Serial driver */#define SC_DEV_TIMER 2 /* Periodic tick timer */#define SC_DEV_RAMDISK NO /* RAM disk */#define SC_DEV_CONSOLE 4 /* PC-Console driver */#define SC_DEV_SCSI NO /* SCSI bus */#define SC_DEV_SCSI_TAPE NO /* SCSI bus, tape device */#define SC_DEV_IDE NO /* IDE Driver */#define SC_DEV_FLOPPY NO /* Floppy Driver */#define SC_DEV_TFTP NO /* TFTP pseudo driver */#define SC_DEV_SPI NO /* SPI driver */#define SC_DEV_DLPI NO /* DLPI pseudo driver */#define SC_DEV_OTCP NO /* 12 TCP/IP for OpEN */#define SC_IP SC_DEV_OTCP /* 12 IP */#define SC_ARP NO /* 13 ARP */#define SC_TCP NO /* 14 TCP */#define SC_UDP NO /* 15 UDP */#define SC_RAW NO /* 16 RAW */#define SC_LOOP NO /* 17 LOOP = (SC_DEV_OTCP + 5) */#define SC_DEV_SOSI NO /* 18 OSI for OpEN */#define SC_DEV_PSEUDO NO /* PSEUDO driver */#define SC_DEV_PARALLEL NO /* Parallel Port Driver */#define SC_DEV_CMOS NO /* CMOS Driver */#define SC_DEV_WATCHDOG NO /* Watchdog Driver */#define SC_DEV_OLAP NO /* LAP Driver */#define SC_PHPI (SC_DEV_OLAP) /* Phpi driver */#define SC_LAPB (SC_DEV_OLAP + 0)/* LAPB driver Change 0 to 1 */#define SC_CLAPB (SC_DEV_OLAP + 0)/* LAPB driver Change 0 to 2 */#define SC_DEV_OX25 (SC_DEV_OLAP + 0)/* LAPB driver Change 0 to 3 */#define SC_X25 (SC_DEV_OX25) /* X25 driver */#define SC_CX25 (SC_DEV_OX25 + 0)/* X25 driver Change 0 to 1 */#define SC_SNDCF NO /* sndcf driver */#define SC_CSNDCF NO /* csndcf driver */#define SC_IPCONV NO#define SC_CIPCONV NO#define SC_DEVMAX 32 /* Maximum device number */#define DEV_SERIAL (SC_DEV_SERIAL << 16)#define DEV_PARALLEL (SC_DEV_PARALLEL << 16)#define DEV_TIMER (SC_DEV_TIMER << 16)#define DEV_RAMDISK (SC_DEV_RAMDISK << 16)#define DEV_SCSI (SC_DEV_SCSI << 16)#define DEV_SCSI_TAPE (SC_DEV_SCSI_TAPE << 16)#define DEV_PSEUDO (SC_DEV_PSEUDO << 16)#define DEV_DLPI (SC_DEV_DLPI << 16)#define DEV_TFTP (SC_DEV_TFTP << 16)#define DEV_SPI (SC_DEV_SPI << 16)#define DEV_WATCHDOG (SC_DEV_WATCHDOG << 16)#define DEV_FLOPPY (SC_DEV_FLOPPY << 16)#define DEV_IDE (SC_DEV_IDE << 16)#define DEV_CMOS (SC_DEV_CMOS << 16)#define DEV_CONSOLE (SC_DEV_CONSOLE << 16)#if (BSP_CPUFAMILY == FAMILY_X86) && (SC_APP_CONSOLE == PCCON) #define CONSOLE DEV_CONSOLE#else #define CONSOLE DEV_SERIAL#endif/***********************************************************************//* *//* M E M O R Y M A N A G E M E N T L I B R A R Y P A R A M S *//* *//***********************************************************************/#define SC_MMULIB NO/***********************************************************************//* *//* C O M P O N E N T C O N F I G U R A T I O N P A R A M E T E R S *//* *//* These parameters should work as is for this application. You *//* may want to change some of them if you start customizing this *//* application. *//* *//***********************************************************************//*---------------------------------------------------------------------*//* pSOS+ configuration parameters *//*---------------------------------------------------------------------*/#define KC_RN0USIZE 0x100 /* region 0 unit size */#define KC_NTASK 25 /* max number of tasks */#define KC_NQUEUE 10 /* max number of message queues */#define KC_NSEMA4 30 /* max number of semaphores */#define KC_NMSGBUF 256 /* max number of message buffers */#define KC_NTIMER 10 /* max number of timers */#define KC_NLOCOBJ 50 /* max number of local objects */#define KC_TICKS2SEC 100 /* clock tick interrupt frequency */#define KC_TICKS2SLICE 10 /* time slice quantum, in ticks */#define KC_INTSTK 0x2000 /* interrupt stack size */#define KC_SYSSTK 0x2000 /* pSOS+ system stack size (bytes) */#define KC_ROOTSSTK 0x4000 /* ROOT supervisor stack size */#define KC_ROOTUSTK 0 /* ROOT user stack size */#define KC_ROOTMODE (T_SUPV | T_ISR) /* ROOT initial mode */#define KC_ROOTPRI 230 /* ROOT task priority *//*---------------------------------------------------------------------*//* The following are examples for modifying the following defines *//* *//* Using a pSOSystem routine as a fatal error handler *//* #define KC_FATAL ((void (*)()) SysInitFail) *//* */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -