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

📄 prjconfig.c

📁 实现vxworks下的1553b通讯功能
💻 C
📖 第 1 页 / 共 2 页
字号:
    usrNetConfig (pDevName, uNum, pTgtName, pAddrString); /* Assigns an IP address and netmask */    }/******************************************************************************** usrNetRemoteInit - */void usrNetRemoteInit (void)    {    usrNetHostSetup ();                 /* Route creation and hostname setup */    usrNetRemoteCreate ();              /* Allows access to file system on boot host */    }/******************************************************************************** usrNetAppInit - */void usrNetAppInit (void)    {    usrTelnetdStart ();                 /* Supports remote login using telnet protocol */    ftpdInit ((FUNCPTR)NULL, 0);        /* File Transfer Protocol Server Library and Task */    usrFtpInit();                       /* File Transfer Protocol (FTP) library */    }/******************************************************************************** usrNetworkInit - Initialize the network subsystem*/void usrNetworkInit (void)    {    usrNetLibInit ();                   /* network buffer creation and device support */    usrNetProtoInit ();                 /* Initialize the network protocol stacks */    usrMuxLibInit ();                   /* network driver to protocol multiplexer */    usrEndLibInit();                    /* Support for network devices using MUX/END interface */                                        /* This should always be included for backward compatibility */    usrNetworkBoot ();                  /* Setup a network device using the boot parameters */    usrNetworkAddrCheck ();             /* Get an IP address if needed and setup the boot device */    usrNetRemoteInit ();                /* initialize network remote I/O access */    usrNetAppInit ();                   /* initialize network application protocols */    }/******************************************************************************** usrWdbInit - the WDB target agent*/void usrWdbInit (void)    {    wdbConfig ();                       /* software agent to support the tornado tools */    wdbMemLibInit ();                   /* read/write target memory */    wdbSysModeInit ();                  /* A breakpoint stops the entire operating system. */    wdbTaskModeInit ();                 /* A breakpoint stops one task, while others keep running. */    wdbEventLibInit ();                 /* asynchronous event handling needed for breakpoints etc. */    wdbEvtptLibInit ();                 /* support library for breakpoints and other asynchonous events. */    wdbDirectCallLibInit ();            /* call arbitrary functions directly from WDB */    wdbCtxLibInit ();                   /* create/delete/manipulate tasks */    wdbRegsLibInit ();                  /* get/set registers */    wdbGopherLibInit ();                /* information gathering language used by many tools */    wdbCtxExitLibInit ();               /* ability to notify the host when a task exits */    wdbExcLibInit ();                   /* notify the host when an exception occurs */    wdbFuncCallLibInit ();              /* asynchronous function calls */    wdbVioLibInit ();                   /* low-level virtual I/O handling */    wdbVioDrv ("/vio");                 /* vxWorks driver for accessing virtual I/O */    usrWdbBp ();                        /* core breakpoint library */    wdbTaskBpLibInit ();                /* task-mode breakpoint library */    wdbCtxStartLibInit ();              /* ability to notify the host when a task starts */    wdbUserEvtLibInit ();               /* ability to send user events to the host */    wdbFppInit ();                      /* WDB hardware fpp support */    wdbTaskFppInit ();                  /* task mode fpp debug support */    wdbSysFppInit ();                   /* system mode mode fpp debug support */    usrWdbBanner ();                    /* print banner to console after the agent is initialized */    }/******************************************************************************** usrShellInit - the target shell*/void usrShellInit (void)    {    dbgInit ();                         /* breakpoints and stack tracer on target. Not needed for remote debugging with tornado. */    usrBanner ();                       /* display the WRS banner on startup */    shellInit (SHELL_STACK_SIZE, TRUE); /* target shell */    }/******************************************************************************** usrShowInit - enable object show routines*/void usrShowInit (void)    {    taskShowInit ();                    /* task show routine */    msgQShowInit ();                    /* message queue show routine */    fppShowInit ();                     /* task floating point registers */    ataShowInit();                      /* ata information */    }/******************************************************************************** usrToolsInit - software development tools*/void usrToolsInit (void)    {    timexInit ();                       /* utility to measure function execution time */    moduleLibInit ();                   /* support library for the target-based loader. */    loadElfInit();                      /* ELF loader */    usrStandaloneInit ();               /* prefered method if not booting from the network. */    usrWdbInit ();                      /* the WDB target agent */    usrShellInit ();                    /* the target shell */    usrShowInit ();                     /* enable object show routines */    }/******************************************************************************** usrKernelCoreInit - core kernel facilities*/void usrKernelCoreInit (void)    {    eventLibInit ();                    /* VxWorks events */    semBLibInit ();                     /* binary semaphores */    semMLibInit ();                     /* mutex semaphores */    semCLibInit ();                     /* counting semaphores */    msgQLibInit ();                     /* message queues */    wdLibInit ();                       /* watchdog timers */    taskHookInit ();                    /* user callouts on task creation/deletion/context switch */    }/******************************************************************************** usrKernelExtraInit - extended kernel facilities*/void usrKernelExtraInit (void)    {    hashLibInit ();                     /* hash library */    symLibInit ();                      /* symbol table */    envLibInit (ENV_VAR_USE_HOOKS);     /* environment variables */    sigInit ();                         /* signals */    }/******************************************************************************** usrIosCoreInit - core I/O system*/void usrIosCoreInit (void)    {    mathHardInit ();                    /* hardware fpp support */    usrBootLineParse (BOOT_LINE_ADRS);  /* parse some boot device configuration info  */    iosInit (NUM_DRIVERS, NUM_FILES, "/null"); /* IO system */    ttyDrv ();                          /* terminal driver */    usrSerialInit ();                   /* SIO component */    usrPcConsoleInit ();                /* PC console component */    }/******************************************************************************** usrDosFsInit - DOS File System components*/void usrDosFsInit (void)    {    cbioLibInit();                      /* CBIO (Cached Block I/O) Support, cbioLib */    dosFsLibInit(0);                    /* dosfs File System Main Module (dosFs2) */    dosFsFatInit();                     /* DOS File System FAT12/16/32 Handler */    dosVDirLibInit();                   /* VFAT Variable-length file names support, Win95/NT compatible */    dosDirOldLibInit();                 /* Strict 8.3 and VxLongs propriatery long names */    dosChkLibInit();                    /* Consistency checking set on per-device basis */    dosFsFmtLibInit();                  /* High level formatting of DOS volumes */    }/******************************************************************************** usrIosExtraInit - extended I/O system*/void usrIosExtraInit (void)    {    excShowInit ();                     /* exception show routines */    excInit ();                         /* miscellaneous support task */    logInit (consoleFd, MAX_LOG_MSGS);  /* message logging */    pipeDrv ();                         /* pipes */    stdioInit ();                       /* buffered IO library */    fioLibInit ();                      /* formatting for printf, scanf, etc. */    floatInit ();                       /* allow printf and others to format floats correctly */    dosFsInit (NUM_DOSFS_FILES);        /* Old dosFs API module, depreciated */    usrDosFsInit ();                    /* DOS File System components */    usrAtaInit ();			if (strcmp (DOSFS_NAMES_ATA_PRIMARY_MASTER, "" )) 			    usrAtaConfig (0, 0, DOSFS_NAMES_ATA_PRIMARY_MASTER); 			if (strcmp (DOSFS_NAMES_ATA_PRIMARY_SLAVE, "" )) 			    usrAtaConfig (0, 1, DOSFS_NAMES_ATA_PRIMARY_SLAVE); 			if (strcmp (DOSFS_NAMES_ATA_SECONDARY_MASTER, "" )) 			    usrAtaConfig (1, 0, DOSFS_NAMES_ATA_SECONDARY_MASTER); 			if (strcmp (DOSFS_NAMES_ATA_SECONDARY_SLAVE, "" )) 			    usrAtaConfig (1, 1, DOSFS_NAMES_ATA_SECONDARY_SLAVE); /* ATA hard drive component */    }/******************************************************************************** usrRoot - entry point for post-kernel initialization*/void usrRoot (char *pMemPoolStart, unsigned memPoolSize)    {    usrKernelCoreInit ();               /* core kernel facilities */    memInit (pMemPoolStart, memPoolSize); /* full featured memory allocator */    memPartLibInit (pMemPoolStart, memPoolSize); /* core memory partition manager */    usrMmuInit ();                      /* basic MMU component */    sysClkInit ();                      /* System clock component */    selectInit (NUM_FILES);             /* select */    usrIosCoreInit ();                  /* core I/O system */    usrKernelExtraInit ();              /* extended kernel facilities */    usrIosExtraInit ();                 /* extended I/O system */    usrNetworkInit ();                  /* Initialize the network subsystem */    selTaskDeleteHookAdd ();            /* install select task delete hook */    usrToolsInit ();                    /* software development tools */    cplusCtorsLink ();                  /* run compiler generated initialization functions at system startup */    usrWindMlInit ();                   /* Initialize WindML */    usrAppInit ();                      /* call usrAppInit() (in your usrAppInit.c project file) after startup. */    }

⌨️ 快捷键说明

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