📄 sys_conf.h
字号:
#define DEV_PHPI (SC_PHPI << 16)#define DEV_LAPB (SC_LAPB << 16)#define DEV_X25 (SC_X25 << 16)#define DEV_SNDCF (SC_SNDCF << 16)#define DEV_IPCONV (SC_IPCONV << 16)#define DEV_PH (SC_PH << 16)#define DEV_LAPD (SC_LAPD << 16)#define DEV_IPCD (SC_IPCD << 16)#define DEV_FRMUX (SC_FRMUX << 16)#define DEV_PIM (SC_PIM << 16)#define DEV_PPP (SC_PPP << 16)#define DEV_LOG (SC_DEV_LOG << 16)#define DEV_PSMUX (SC_DEV_PSMUX << 16)#define DEV_PSLWR (SC_DEV_PSLWR << 16)#define DEV_SLLWR (SC_DEV_SLLWR << 16)#if (BSP_CPUFAMILY == FAMILY_X86) && (SC_APP_CONSOLE == PCCON) #define CONSOLE DEV_CONSOLE#else #define CONSOLE DEV_SERIAL#endif/***********************************************************************//* TFTP Configuration Parameters. *//***********************************************************************/#if DEV_TFTP#define SC_MAX_TFTP_CHAN 1#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_SYSSTK 0x1000 /* pSOS+ system stack size (bytes) */#define KC_ROOTSSTK 0x2000 /* 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 */#define KC_NMUTEX 0 /* Max number of Mutex's */#define KC_NCVAR 0 /* Max number of condition variables */#define KC_NTVAR 0 /* Max number of task variable */#define KC_NCOCB 1 /* Max number of callouts */#define KC_IDLESTK 0x1000 /* IDLE stack size */#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_NTSD 0 /* Max # of TSD entries */#define KC_MAXIO (SC_DEVMAX+1) /* Max # of devices in the system *//*---------------------------------------------------------------------*//* 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) *//* *//*---------------------------------------------------------------------*/#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 */#define KC_RTCINITCO 0 /* RTC INIT 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 pSOSystem routine as a roster change handler *//* #define MC_ROSTER ((void (*)()) SysInitFail) *//* *//* 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 that the SMODE flag bits are *//* irrelevant if SC_SD_DEBUG_MODE = DBG_AP. *//*---------------------------------------------------------------------*/#define TD_BRKOPC 0 /* Instruction break opcode */#define TD_ILEV (MAX_ILEV << 12) /* pROBE+ interrupt mask */#define TD_FLAGS (NODOTS_MASK | TD_ILEV | NOTUPD_MASK)/* flags */#define TD_DBGPRI 244 /* Debugger task priority *//*---------------------------------------------------------------------*//* The variable defined down should be set to the Starting address for *//* for pROBE+ DATA AREA. This is required by all the smaller boards. *//* NOTE: *//* Setting of this value should have atleast 0x4400 bytes Free *//* Space from that location. *//*---------------------------------------------------------------------*/#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 *//*---------------------------------------------------------------------*//* Set the value for FC_ERRCO. It will be called if there is an error *//* during IO operation on the Volume *//* *//* Sample call-out is defined below (fc_errco). *//*---------------------------------------------------------------------*/#if SC_PHILE#include <phile.h> /* pHILE+ types definitions for FC_ERRCO */extern ULONGfc_errco(int direction, ULONG err_code, const struct buffer_header *buffer);#define FC_ERRCO 0 /* I/O error call-out */#endif /* SC_PHILE *//*---------------------------------------------------------------------*//* pLM+ configuration parameters *//*---------------------------------------------------------------------*/#if SC_PLM#include <plm.h> /* pLM+ type definitions */#define LM_MAXREG 8 /* Max # of registered libraries */#define LM_DATA 0 /* pLM+ data area */#define LM_DATASIZE 0 /* pLM+ data area size *//***********************************************************************//* Setting the LM_DEFAULT_COUTS to YES will use the default Callout *//* mechanism provided by pSOSystem. Else *//* It needs to be defined by the User. *//* If User is not defining the call outs then pLM+ will jump to ZERO *//* Address for execution. *//***********************************************************************/#define LM_DEFAULT_COUTS YES#if LM_DEFAULT_COUTSextern ULONG lm_loadco(const char *libname, ULONG scope, ULONG version, const void *libinfo, /* Out */ sl_attrib *attr);extern ULONG lm_unloadco(const sl_attrib *attr);#define LM_LOADCO lm_loadco /* sl_acquire() Load call-out */#define LM_UNLOADCO lm_unloadco /* sl_release() Unload call-out */#else /* LM_DEFAULT_COUTS == NO */#define LM_LOADCO 0#define LM_UNLOADCO 0#endif#endif/*---------------------------------------------------------------------*//* pREPC+ configuration parameters *//*---------------------------------------------------------------------*/#define LC_BUFSIZ (1 << FC_LOGBSIZE) /* I/O buffer size */#define LC_NUMFILES 5 /* Max number of open files per task */#define LC_WAITOPT 0 /* Wait option for memory allocation */#define LC_TIMEOPT 0 /* Timeout option for mem allocation */#define LC_SSIZE 512 /* Size of print buffer *//*---------------------------------------------------------------------*//* pREPC+ stdin, stdout and stderr device mapping. *//*---------------------------------------------------------------------*/#if (SC_DEV_PSCONSOLE)#define LC_STDIN "///dev/stdin" /* The default STDIN device */#define LC_STDOUT "///dev/stdout" /* The default STDOUT device */#define LC_STDERR "///dev/stderr" /* The default STDERR device */#elif (BSP_CPUFAMILY == FAMILY_X86) && (SC_APP_CONSOLE == PCCON)#define LC_STDIN "///dev/pcconsole" /* Make PCCON as STDIN device */#define LC_STDOUT "///dev/pcconsole" /* Make PCCON as STDOUT device */#define LC_STDERR "///dev/pcconsole" /* Make PCCON as STDERR device */#elif (SC_DEV_SERIAL)#define LC_STDIN "///dev/tty" /* Make TTY the STDIN device */#define LC_STDOUT "///dev/tty" /* Make TTY the STDOUT device */#define LC_STDERR "///dev/tty" /* Make TTY the STDERR device */#elif (SC_DEV_SIMCONSOLE)#define LC_STDIN "///dev/simconsole" /* Make simconsole STDIN */#define LC_STDOUT "///dev/simconsole" /* Make simconsole STDOUT */#define LC_STDERR "///dev/simconsole" /* Make simconsole STDERR */#else#define LC_STDIN "///dev/null" /* Make NULL the STDIN device */#define LC_STDOUT "///dev/null" /* Make NULL the STDOUT device */#define LC_STDERR "///dev/null" /* Make NULL the STDERR device */#endif#if (SC_DEV_RAMDISK)#define LC_TEMPDIR DEV_RAMDISK /* The default TEMPDIR device */#elif (SC_DEV_SCSI)#define LC_TEMPDIR DEV_SCSI /* The default TEMPDIR device */#elif (SC_DEV_IDE)#define LC_TEMPDIR DEV_IDE /* The default TEMPDIR device */#elif (SC_DEV_FLOPPY)#define LC_TEMPDIR DEV_FLOPPY /* The default TEMPDIR device */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -