📄 sys_conf.h
字号:
#define SC_NumNon_pSOSChan 1
/***********************************************************************/
/* */
/* L A N C O N F I G U R A T I O N */
/* */
/* */
/***********************************************************************/
#define SD_LAN1 NO
#define SD_LAN1_IP 0x00000000
#define SD_LAN1_SUBNET_MASK 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 */
/* */
/* */
/***********************************************************************/
/*---------------------------------------------------------------------*/
/* 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 SD_VME_BASE_ADDR+0x400
#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 SD_VME_BASE_ADDR+0x580
/***********************************************************************/
/* */
/* 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
/***********************************************************************/
/* */
/* B U S C O N F I G U R A T I O N */
/* */
/* */
/***********************************************************************/
#define SD_VME_BASE_ADDR 0x01000000
/***********************************************************************/
/* 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 (4*1024*1024)
/***********************************************************************/
/* TCS_MALLOC_USE */
/* A user can choose to use the TCS malloc, or let pSOS allocate */
/* memory from region zero. */
/* If TCS_MALLOC_USE is defined, use the TCS malloc */
/***********************************************************************/
#define TCS_MALLOC_USE 1
#define TCS_REGION0_SIZE 32768
/***********************************************************************/
/* */
/* 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 NO /* Serial driver */
#define SC_DEV_TIMER 1 /* Periodic tick timer */
#define SC_DEV_RAMDISK NO /* 3 RAM disk */
#define SC_DEV_SCSI NO /* 4 SCSI bus */
#define SC_DEV_SCSI_TAPE NO /* 5 SCSI bus, tape device */
#define SC_DEV_TFTP NO /* 6 TFTP pseudo driver */
#define SC_DEV_DLPI NO /* DLPI pseudo driver */
#define SC_DEV_OTCP NO /* 8 TCP/IP for OpEN */
#define SC_IP SC_DEV_OTCP /* 8 IP */
#define SC_ARP NO /* 9 ARP */
#define SC_TCP NO /* 10 TCP */
#define SC_UDP NO /* 11 UDP */
#define SC_RAW NO /* 12 RAW */
#define SC_LOOP NO /* 13 LOOP = (SC_DEV_OTCP + 5) */
#define SC_DEV_SOSI NO /* 14 OSI for OpEN */
#define SC_DEVMAX 20 /* Maximum device number */
#define DEV_SERIAL (SC_DEV_SERIAL << 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_TFTP (SC_DEV_TFTP << 16)
/***********************************************************************/
/* */
/* 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 0x400 /* region 0 unit size */
#define KC_NTASK 101 /* max number of tasks */
#define KC_NQUEUE 64 /* max number of message queues */
#define KC_NSEMA4 64 /* max number of semaphores */
#define KC_NMUTEX 64 /* max number of mutices */
#define KC_NMSGBUF (128*32) /* max number of message buffers */
#define KC_NTIMER 10 /* max number of timers */
#define KC_NLOCOBJ 1024 /* max number of local objects */
#define KC_TICKS2SEC 100 /* clock tick interrupt frequency */
#define KC_TICKS2SLICE 10 /* time slice quantum, in ticks */
#define KC_SYSSTK 0x8000 /* pSOS+ system stack size (bytes) */
#define KC_ROOTSSTK 0x8000 /* ROOT supervisor stack size */
#define KC_ROOTUSTK 0x8000 /* ROOT user stack size */
#define KC_ROOTMODE 0x2000 /* ROOT initial mode */
/*---------------------------------------------------------------------*/
/* The following are examples for modifying the following defines */
/* */
/* Using a pSOSystem routine as a fatal error handler */
/* #define KC_FATAL ((void (*)()) SysInitFail) */
/* */
/* Using a user written routine as a fatal error handler */
/* extern void MyHandler (void); */
/* #define KC_FATAL ((void (*)()) MyHandler) */
/* */
/*---------------------------------------------------------------------*/
extern void task_switch (unsigned long entering_tid, void* entering_tcb,
unsigned long leaving_tid, void* leaving_tcb);
#define KC_STARTCO 0 /* callout at task activation */
#define KC_DELETECO 0 /* callout at task deletion */
#define KC_SWITCHCO 0 /* callout at task switch */
#define KC_FATAL 0 /* fatal error handler address */
#define KC_ROOTPRI 230 /* ROOT task priority */
/*---------------------------------------------------------------------*/
/* pSOS+m configuration parameters */
/*---------------------------------------------------------------------*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -