📄 sys_conf.h.bak
字号:
/***********************************************************************/
/* T F T P D R I V E R C O N F I G U R A T I O N */
/* */
/* The defines below define the Configuration Parameters needed by the */
/* TFTP driver. */
/* */
/***********************************************************************/
#define SC_MAX_TFTP_CHAN 1 /* Maximum number of TFTP channels */
/***********************************************************************/
/* H T T P S E R V E R C O N F I G U R A T I O N */
/* */
/* The SC_MAX_HTTP_CHAN define controls the maximum number of HTTP */
/* channels in the system. */
/* */
/***********************************************************************/
#define SC_MAX_HTTP_CHAN 1
/***********************************************************************/
/* P I P E D R I V E R C O N F I G U R A T I O N */
/* */
/* The SC_MAX_PIPE_CHAN define controls the maximum number of PIPE */
/* channels that will be configured in the system. */
/* */
/***********************************************************************/
#define SC_MAX_PIPE_CHAN 1
/***********************************************************************/
/* */
/* M M U L I B R A R Y P A R A M S */
/* */
/* The SC_MMULIB define controls the MMU library call-outs when pROBE+ */
/* is entered. Setting this to YES enables the callouts, while setting */
/* this to NO disables the callouts when pROBE+ is entered and BSP_MMU */
/* is enabled. */
/* */
/***********************************************************************/
#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 0x400 /* region 0 unit size */
#define KC_NTASK 64 /* max number of tasks */
#define KC_NQUEUE 64 /* max number of message queues */
#define KC_NSEMA4 30 /* max number of semaphores */
#define KC_NTIMER 10 /* max number of timers */
#define KC_NMUTEX 15 /* Max number of mutexes */
#define KC_NCVAR 5 /* Max number of condition variables */
#define KC_NTVAR 32 /* Max number of task variables */
#define KC_NCOCB 5 /* Max number of callouts */
#define KC_NTSD 32 /* Max # of Task Specific Data entries */
#define KC_NLOCOBJ 64 /* max number of local objects */
#define KC_NMSGBUF 1024 /* max number of message buffers */
#define KC_TICKS2SEC 1000 /* clock tick interrupt frequency */
#define KC_TICKS2SLICE 1 /* time slice quantum, in ticks */
#define KC_MAXDNTENT 0 /* max number of device names in DNT */
#define KC_DNLEN 10 /* max length of a device name in DNT */
#define KC_SYSSTK 0x2000 /* pSOS+ system stack size (bytes) */
#define KC_ROOTSSTK 0x1000 /* ROOT supervisor stack size */
#define KC_IDLESTK 0x400 /* IDLE 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 */
#define KC_NIO (SC_DEVMAX+1) /* # of devices in initial iojtab */
#define KC_MAXIO (SC_DEVMAX+1) /* Max # of devices in the system */
/*---------------------------------------------------------------------*/
/* The following are examples for modifying the following defines */
/* */
/* To configure a user written routine as a fatal error handler, you */
/* need to do the following: */
/* */
/* extern void MyHandler (void); */
/* #define KC_FATAL ((void (*)()) MyHandler) */
/* */
/*---------------------------------------------------------------------*/
#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_IDLECO 0 /* Idle Task Callout */
/*---------------------------------------------------------------------*/
/* pSOS+m configuration parameters */
/*---------------------------------------------------------------------*/
#define MC_NGLBOBJ 8 /* size of gbl obj table */
#define MC_NAGENT 10 /* number of RPC agents in this node */
#define MC_FLAGS SEQWRAP_ON /* operating mode flags */
/*---------------------------------------------------------------------*/
/* The following are examples for modifying the following definition */
/* */
/* Using a user written routine as a roster change handler */
/* extern void MyHandler (void); */
/* #define MC_ROSTER ((void (*)()) MyHandler) */
/* */
/*---------------------------------------------------------------------*/
#define MC_ROSTER 0 /* addr of user roster change callout */
#define MC_KIMAXBUF 100 /* maximum KI packet buffer length */
#define MC_ASYNCERR 0 /* asynchronous calls error callout */
/*---------------------------------------------------------------------*/
/* pROBE+ configuration parameters */
/* */
/* NOTE: The SMODE_MASK bit in TD_FLAGS is set as */
/* SC_SD_DEBUG_MODE = DBG_AP. */
/*---------------------------------------------------------------------*/
#define TD_BRKOPC 0 /* Instruction break opcode */
#define TD_DBGPRI 244 /* Debugger task priority */
#define TD_ILEV (MAX_ILEV << 12) /* pROBE+ interrupt mask */
#define TD_FLAGS (NODOTS_MASK | TD_ILEV | NOTUPD_MASK|RBUG_MASK) /* flags */
/*---------------------------------------------------------------------*/
/* The variable defined below should be set to the Starting address */
/* for pROBE+ DATA AREA. This is required by all the smaller boards. */
/* NOTE: */
/* Setting of this value should be a variable which is a array */
/* of characters with atleast 0x4400 bytes free space. */
/*---------------------------------------------------------------------*/
#define TD_DATASTART 0x0
/*---------------------------------------------------------------------*/
/* pHILE+ configuration parameters */
/*---------------------------------------------------------------------*/
#define FC_LOGBSIZE 9 /* Block size (base-2 exponent) */
#define FC_NBUF 6 /* Number of cache buffers */
#define FC_NMOUNT 3 /* Max # of mounted volumes */
#define FC_NFCB 10 /* Max # of opened files per system */
#define FC_NCFILE 2 /* Max # of opened files per task */
#define FC_NDNLC 0 /* Max # of cached directory entries */
/*---------------------------------------------------------------------*/
/* pHILE+ DATA AREA definitions. */
/*---------------------------------------------------------------------*/
#define FC_DATA 0x0 /* pHILE+ Data Area Starting Address */
#define FC_DATASIZE 0x0 /* pHILE+ Data Area Size */
/*---------------------------------------------------------------------*/
/* Set the FC_ERRCO define to install the callout handler for I/O */
/* errors. The callout handler provided in FC_ERRCO will be called if */
/* there is an error during an I/O operation on the Volume. */
/* */
/* To install the error callout handler: Follow the syntax below */
/* */
/* #include <phile.h> */
/* extern user_fcerrco(int, ULONG, const struct buffer_header *) */
/* #define FC_ERRCO user_fcerrco */
/* */
/*---------------------------------------------------------------------*/
#define FC_ERRCO 0 /* I/O error call-out */
/*---------------------------------------------------------------------*/
/* pLM+ configuration parameters */
/*---------------------------------------------------------------------*/
#define LM_MAXREG 8 /* Max # of registered libraries */
#define LM_DATA 0 /* pLM+ data area */
#define LM_DATASIZE 0 /* pLM+ data area size */
/*---------------------------------------------------------------------*/
/* Set LM_DEFAULT_COUTS to YES if you need to use the pSOSystem Default*/
/* pLM Callouts. Set it to NO if you are providing the callouts. */
/* */
/* Setting LM_DEFAULT_COUTS to NO needs "LM_LOADCO" and "LM_UNLOADCO" */
/* definitions to be valid address (Function address). */
/*---------------------------------------------------------------------*/
#define LM_DEFAULT_COUTS YES
/*---------------------------------------------------------------------*/
/* */
/* The following callouts needs to be defined by user, If users wants */
/* their callouts to be used instead of pSOSystem default Callouts. */
/* */
/* If we are using pSOSystem default callouts, Users needs to add their*/
/* callouts to the pSOSystem callouts table using PssRegister_pLM_couts*/
/* and remove using PssDeregister_pLM_couts. */
/* */
/* To have user callouts follow the syntax below: */
/* */
/* #include <plm.h> */
/* extern ULONG user_load_co(const char *libname, ULONG scope, */
/* ULONG version, const void *libinfo, */
/* sl_attrib *attr); */
/* extern ULONG user_unload_co(const sl_attrib *attr); */
/* */
/* #define LM_LOADCO user_load_co */
/* #define LM_UNLOADCO user_unload_co */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -