⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sys_conf.h

📁 wm PNE 3.3 source code, running at more than vxworks6.x version.
💻 H
📖 第 1 页 / 共 5 页
字号:
/***********************************************************************//*        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    0x100    /* region 0 unit size                  */#define KC_NTASK       40       /* max number of tasks                 */#define KC_NQUEUE      25       /* max number of message queues        */#define KC_NSEMA4      30       /* max number of semaphores            */#define KC_NTIMER      20       /* max number of timers                */#define KC_NMUTEX      20       /* Max number of mutexes               */#define KC_NCVAR       20       /* Max number of condition variables   */#define KC_NTVAR       5        /* Max number of task variables        */#define KC_NCOCB       5        /* Max number of callouts              */#define KC_NTSD        5        /* Max # of Task Specific Data entries */#define KC_NLOCOBJ     100      /* max number of local objects         */#define KC_NMSGBUF     256      /* max number of message buffers       */#define KC_TICKS2SEC   100      /* clock tick interrupt frequency      */#define KC_TICKS2SLICE 10       /* time slice quantum, in ticks        */#define KC_MAXDNTENT   10       /* max number of device names in DNT   */#define KC_DNLEN       10       /* max length of a device name in DNT  */#define KC_SYSSTK      0x1000   /* pSOS+ system stack size (bytes)     */#define KC_ROOTSSTK    0x2000   /* ROOT supervisor stack size          */#define KC_IDLESTK     0x0400   /* 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      0xe6000010/* Instruction break opcode (INT 3)   */#define TD_BRKOPC_16   0xde00   /* Thumb undefined inst                */#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)/* 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        0        /* pHILE+ Data Area Starting Address   */#define FC_DATASIZE    0        /* 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                               *//*                                                                     *//*---------------------------------------------------------------------*/#define LM_LOADCO      0#define LM_UNLOADCO    0/*---------------------------------------------------------------------*//*                  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   *//*---------------------------------------------------------------------*//* 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 */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -