📄 usrconfig.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/usrConfig.html - generated by refgen from /vobs/wpwr/target/config/all/usrConfig.c --> <title> usrConfig </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.htm"><i>VxWorks API Reference : OS Libraries</i></a></p></blockquote><h1>usrConfig</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>usrConfig</strong> - user-defined system configuration library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><a href="./usrConfig.html#usrInit">usrInit</a>( )</b> - user-defined system initialization routine<br><b><a href="./usrConfig.html#usrRoot">usrRoot</a>( )</b> - the root task<br><b><a href="./usrConfig.html#usrClock">usrClock</a>( )</b> - user-defined system clock interrupt routine<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library is the WRS-supplied configuration module for VxWorks. Itcontains the root task, the primary system initialization routine, thenetwork initialization routine, and the clock interrupt routine.<p>The include file <b>config.h</b> includes a number of system-dependent parameters usedin this file.<p>In an effort to simplify the presentation of the configuration of vxWorks,this file has been split into smaller files. These additional configurationsource files are located in ../../src/config/usr[xxx].c and are #included intothis file below. This file contains the bulk of the code a customer islikely to customize.<p>The module <b>usrDepend.c</b> contains checks that guard against unsupportedconfigurations such as <b>INCLUDE_NFS</b> without <b>INCLUDE_RPC</b>. The module<b>usrKernel.c</b> contains the core initialization of the kernel which is rarelycustomized, but provided for information. The module <b>usrNetwork.c</b> nowcontains all network initialization code. Finally, the module <b>usrExtra.c</b>contains the conditional inclusion of the optional packages selected in<b>configAll.h</b>.<p>The source code necessary for the configuration selected is entirelyincluded in this file during compilation as part of a standard build inthe board support package. No other make is necessary.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><p><b>config.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><p><i>Tornado User's Guide: Getting Started, Cross-Development </i><hr><a name="usrInit"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>usrInit( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>usrInit( )</strong> - user-defined system initialization routine</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void usrInit ( int startType )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This is the first C code executed after the system boots. This routine iscalled by the assembly language start-up routine <b>sysInit( )</b> which is in the<b>sysALib</b> module of the target-specific directory. It is called withinterrupts locked out. The kernel is not multitasking at this point.<p>This routine starts by clearing BSS; thus all variables are initialized to 0,as per the C specification. It then initializes the hardware by calling<b><a href="./sysLib.html#sysHwInit">sysHwInit</a>( )</b>, sets up the interrupt/exception vectors, and starts kernelmultitasking with <b><a href="./usrConfig.html#usrRoot">usrRoot</a>( )</b> as the root task.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrConfig.html#top">usrConfig</a></b>, <b><a href="./kernelLib.html#top">kernelLib</a></b><p>ARGSUSED0<hr><a name="usrRoot"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>usrRoot( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>usrRoot( )</strong> - the root task</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void usrRoot ( char * pMemPoolStart, /* start of system memory partition */ unsigned memPoolSize /* initial size of mem pool */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This is the first task to run under the multitasking kernel. It performsall final initialization and then starts other tasks.<p>It initializes the I/O system, installs drivers, creates devices, and setsup the network, etc., as necessary for a particular configuration. Itmay also create and load the system symbol table, if one is to be included.It may then load and spawn additional tasks as needed. In the defaultconfiguration, it simply initializes the VxWorks shell.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrConfig.html#top">usrConfig</a></b><hr><a name="usrClock"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>usrClock( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>usrClock( )</strong> - user-defined system clock interrupt routine</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void usrClock ()</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine is called at interrupt level on each clock interrupt.It is installed by <b><a href="./usrConfig.html#usrRoot">usrRoot</a>( )</b> with a <b><a href="./sysLib.html#sysClkConnect">sysClkConnect</a>( )</b> call.It calls all the other packages that need to know about clock ticks,including the kernel itself.<p>If the application needs anything to happen at the system clock interruptlevel, it can be added to this routine.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrConfig.html#top">usrConfig</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -