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

📄 syslib.html

📁 Vxworks API操作系统和驱动程序设计API。压缩的HTML文件
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/sysLib.html - generated by refgen from /vobs/wpwr/target/config/doc/sysLib.c --> <title> sysLib </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>sysLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>sysLib</strong> - system-dependent library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><a href="./sysLib.html#sysClkConnect">sysClkConnect</a>(&nbsp;)</b>  -  connect a routine to the system clock interrupt<br><b><a href="./sysLib.html#sysClkDisable">sysClkDisable</a>(&nbsp;)</b>  -  turn off system clock interrupts<br><b><a href="./sysLib.html#sysClkEnable">sysClkEnable</a>(&nbsp;)</b>  -  turn on system clock interrupts<br><b><a href="./sysLib.html#sysClkRateGet">sysClkRateGet</a>(&nbsp;)</b>  -  get the system clock rate<br><b><a href="./sysLib.html#sysClkRateSet">sysClkRateSet</a>(&nbsp;)</b>  -  set the system clock rate<br><b><a href="./sysLib.html#sysAuxClkConnect">sysAuxClkConnect</a>(&nbsp;)</b>  -  connect a routine to the auxiliary clock interrupt<br><b><a href="./sysLib.html#sysAuxClkDisable">sysAuxClkDisable</a>(&nbsp;)</b>  -  turn off auxiliary clock interrupts<br><b><a href="./sysLib.html#sysAuxClkEnable">sysAuxClkEnable</a>(&nbsp;)</b>  -  turn on auxiliary clock interrupts<br><b><a href="./sysLib.html#sysAuxClkRateGet">sysAuxClkRateGet</a>(&nbsp;)</b>  -  get the auxiliary clock rate<br><b><a href="./sysLib.html#sysAuxClkRateSet">sysAuxClkRateSet</a>(&nbsp;)</b>  -  set the auxiliary clock rate<br><b><a href="./sysLib.html#sysIntDisable">sysIntDisable</a>(&nbsp;)</b>  -  disable a bus interrupt level<br><b><a href="./sysLib.html#sysIntEnable">sysIntEnable</a>(&nbsp;)</b>  -  enable a bus interrupt level<br><b><a href="./sysLib.html#sysBusIntAck">sysBusIntAck</a>(&nbsp;)</b>  -  acknowledge a bus interrupt<br><b><a href="./sysLib.html#sysBusIntGen">sysBusIntGen</a>(&nbsp;)</b>  -  generate a bus interrupt<br><b><a href="./sysLib.html#sysMailboxConnect">sysMailboxConnect</a>(&nbsp;)</b>  -  connect a routine to the mailbox interrupt<br><b><a href="./sysLib.html#sysMailboxEnable">sysMailboxEnable</a>(&nbsp;)</b>  -  enable the mailbox interrupt<br><b><a href="./sysLib.html#sysNvRamGet">sysNvRamGet</a>(&nbsp;)</b>  -  get the contents of non-volatile RAM<br><b><a href="./sysLib.html#sysNvRamSet">sysNvRamSet</a>(&nbsp;)</b>  -  write to non-volatile RAM<br><b><a href="./sysLib.html#sysModel">sysModel</a>(&nbsp;)</b>  -  return the model name of the CPU board<br><b><a href="./sysLib.html#sysBspRev">sysBspRev</a>(&nbsp;)</b>  -  return the BSP version and revision number<br><b><a href="./sysLib.html#sysHwInit">sysHwInit</a>(&nbsp;)</b>  -  initialize the system hardware<br><b><a href="./sysLib.html#sysPhysMemTop">sysPhysMemTop</a>(&nbsp;)</b>  -  get the address of the top of memory<br><b><a href="./sysLib.html#sysMemTop">sysMemTop</a>(&nbsp;)</b>  -  get the address of the top of logical memory<br><b><a href="./sysLib.html#sysToMonitor">sysToMonitor</a>(&nbsp;)</b>  -  transfer control to the ROM monitor<br><b><a href="./sysLib.html#sysProcNumGet">sysProcNumGet</a>(&nbsp;)</b>  -  get the processor number<br><b><a href="./sysLib.html#sysProcNumSet">sysProcNumSet</a>(&nbsp;)</b>  -  set the processor number<br><b><a href="./sysLib.html#sysBusTas">sysBusTas</a>(&nbsp;)</b>  -  test and set a location across the bus<br><b><a href="./sysLib.html#sysScsiBusReset">sysScsiBusReset</a>(&nbsp;)</b>  -  assert the RST line on the SCSI bus (Western Digital WD33C93 only)<br><b><a href="./sysLib.html#sysScsiInit">sysScsiInit</a>(&nbsp;)</b>  -  initialize an on-board SCSI port<br><b><a href="./sysLib.html#sysScsiConfig">sysScsiConfig</a>(&nbsp;)</b>  -  system SCSI configuration<br><b><a href="./sysLib.html#sysLocalToBusAdrs">sysLocalToBusAdrs</a>(&nbsp;)</b>  -  convert a local address to a bus address<br><b><a href="./sysLib.html#sysBusToLocalAdrs">sysBusToLocalAdrs</a>(&nbsp;)</b>  -  convert a bus address to a local address<br><b><a href="./sysLib.html#sysSerialHwInit">sysSerialHwInit</a>(&nbsp;)</b>  -  initialize the BSP serial devices to a quiesent state<br><b><a href="./sysLib.html#sysSerialHwInit2">sysSerialHwInit2</a>(&nbsp;)</b>  -  connect BSP serial device interrupts<br><b><a href="./sysLib.html#sysSerialReset">sysSerialReset</a>(&nbsp;)</b>  -  reset all SIO devices to a quiet state<br><b><a href="./sysLib.html#sysSerialChanGet">sysSerialChanGet</a>(&nbsp;)</b>  -  get the <b>SIO_CHAN</b> device associated with a serial channel<br><b><a href="./sysLib.html#sysNanoDelay">sysNanoDelay</a>(&nbsp;)</b>  -  delay for specified number of nanoseconds<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library provides board-specific routines.<p><b>NOTE:</b>  This is a generic reference entry for a BSP-specific library; thisdescription contains general information only.  For features and capabilitiesspecific to the system library included in your BSP, see your BSP'sreference entry for <b><a href="./sysLib.html#top">sysLib</a></b>.  <p>The file <b>sysLib.c</b> provides the board-level interface on which VxWorks andapplication code can be built in a hardware-independent manner.  Thefunctions addressed in this file include:<p>&nbsp;&nbsp;&nbsp;&nbsp;Initialization&nbsp;functions<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;initialize&nbsp;the&nbsp;hardware&nbsp;to&nbsp;a&nbsp;known&nbsp;state<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;identify&nbsp;the&nbsp;system<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;initialize&nbsp;drivers,&nbsp;such&nbsp;as&nbsp;SCSI&nbsp;or&nbsp;custom&nbsp;drivers<p>&nbsp;&nbsp;&nbsp;&nbsp;Memory/address&nbsp;space&nbsp;functions<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;get&nbsp;the&nbsp;on-board&nbsp;memory&nbsp;size<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;make&nbsp;on-board&nbsp;memory&nbsp;accessible&nbsp;to&nbsp;external&nbsp;bus<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;map&nbsp;local&nbsp;and&nbsp;bus&nbsp;address&nbsp;spaces<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;enable/disable&nbsp;cache&nbsp;memory<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;set/get&nbsp;nonvolatile&nbsp;RAM&nbsp;(NVRAM)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;define&nbsp;board's&nbsp;memory&nbsp;map&nbsp;(optional)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;virtual-to-physical&nbsp;memory&nbsp;map&nbsp;declarations&nbsp;for&nbsp;processors&nbsp;with&nbsp;MMUs<p>&nbsp;&nbsp;&nbsp;&nbsp;Bus&nbsp;interrupt&nbsp;functions<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;enable/disable&nbsp;bus&nbsp;interrupt&nbsp;levels<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;generate&nbsp;bus&nbsp;interrupts<p>&nbsp;&nbsp;&nbsp;&nbsp;Clock/timer&nbsp;functions<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;enable/disable&nbsp;timer&nbsp;interrupts<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;set&nbsp;the&nbsp;periodic&nbsp;rate&nbsp;of&nbsp;the&nbsp;timer<p>&nbsp;&nbsp;&nbsp;&nbsp;Mailbox/location&nbsp;monitor&nbsp;functions<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;enable&nbsp;mailbox/location&nbsp;monitor&nbsp;interrupts&nbsp;for&nbsp;VME-based&nbsp;boards<p>The <b><a href="./sysLib.html#top">sysLib</a></b> library does not support every feature of every board; aparticular board may have various extensions to the capabilities describedhere.  Conversely, some boards do not support every function provided bythis library.  Some boards provide some of the functions of this libraryby means of hardware switches, jumpers, or PALs, instead ofsoftware-controllable registers.<p>Typically, most functions in this library are not called by the userapplication directly.  The configuration modules <b>usrConfig.c</b> and<b>bootConfig.c</b> are responsible for invoking the routines at the appropriatetime.  Device drivers may use some of the memory mapping routines and busfunctions.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>sysLib.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><p><i>VxWorks Programmer's Guide: Configuration and Build, </i>BSP-specific reference entry for <b><a href="./sysLib.html#top">sysLib</a></b><p><hr><a name="sysClkConnect"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>sysClkConnect(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>sysClkConnect(&nbsp;)</strong> - connect a routine to the system clock interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysClkConnect    (    FUNCPTR routine,          /* routine called at each system clock */                              /* interrupt */     int     arg               /* argument with which to call routine */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine specifies the interrupt service routine to be called at eachclock interrupt.  Normally, it is called from <b><a href="./usrConfig.html#usrRoot">usrRoot</a>(&nbsp;)</b> in <b>usrConfig.c</b> toconnect <b><a href="./usrConfig.html#usrClock">usrClock</a>(&nbsp;)</b> to the system clock interrupt.<p></blockquote><h4>NOTE </h4><blockquote><p>This is a generic page for a BSP-specific routine; thisdescription  contains general information only. To determine if thisroutine is supported by your BSP, or for information specific to yourBSP's version of this routine, see the reference pages for your BSP.<p></blockquote><h4>RETURN</h4><blockquote><p>OK, or ERROR if the routine cannot be connected to the interrupt.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><a href="./intArchLib.html#intConnect">intConnect</a>(&nbsp;)</b>, <b><a href="./usrConfig.html#usrClock">usrClock</a>(&nbsp;)</b>, <b><a href="./sysLib.html#sysClkEnable">sysClkEnable</a>(&nbsp;)</b>,  and BSP-specific reference pages for this routine.<hr><a name="sysClkDisable"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>sysClkDisable(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>sysClkDisable(&nbsp;)</strong> - turn off system clock interrupts</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void sysClkDisable (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine disables system clock interrupts.<p></blockquote><h4>NOTE </h4><blockquote><p>This is a generic page for a BSP-specific routine; thisdescription  contains general information only. To determine if thisroutine is supported by your BSP, or for information specific to yourBSP's version of this routine, see the reference pages for your BSP.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><a href="./sysLib.html#sysClkEnable">sysClkEnable</a>(&nbsp;)</b>,  and BSP-specific reference pages for this routine.<hr><a name="sysClkEnable"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>sysClkEnable(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>sysClkEnable(&nbsp;)</strong> - turn on system clock interrupts</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void sysClkEnable (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine enables system clock interrupts.<p></blockquote><h4>NOTE </h4><blockquote><p>This is a generic page for a BSP-specific routine; thisdescription  contains general information only. To determine if thisroutine is supported by your BSP, or for information specific to yourBSP's version of this routine, see the reference pages for your BSP.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><a href="./sysLib.html#sysClkConnect">sysClkConnect</a>(&nbsp;)</b>, <b><a href="./sysLib.html#sysClkDisable">sysClkDisable</a>(&nbsp;)</b>, <b><a href="./sysLib.html#sysClkRateSet">sysClkRateSet</a>(&nbsp;)</b>,  and BSP-specific reference pages for this routine.<hr><a name="sysClkRateGet"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>sysClkRateGet(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>sysClkRateGet(&nbsp;)</strong> - get the system clock rate</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int sysClkRateGet (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns the system clock rate.<p></blockquote><h4>NOTE </h4><blockquote><p>This is a generic page for a BSP-specific routine; thisdescription  contains general information only. To determine if thisroutine is supported by your BSP, or for information specific to yourBSP's version of this routine, see the reference pages for your BSP.<p></blockquote><h4>RETURNS</h4><blockquote><p>The number of ticks per second of the system clock.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><a href="./sysLib.html#sysClkEnable">sysClkEnable</a>(&nbsp;)</b>, <b><a href="./sysLib.html#sysClkRateSet">sysClkRateSet</a>(&nbsp;)</b>,  and BSP-specific reference pages for this routine.<hr><a name="sysClkRateSet"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>sysClkRateSet(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>sysClkRateSet(&nbsp;)</strong> - set the system clock rate</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysClkRateSet    (    int ticksPerSecond        /* number of clock interrupts per second */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine sets the interrupt rate of the system clock.It is called by <b><a href="./usrConfig.html#usrRoot">usrRoot</a>(&nbsp;)</b> in <b>usrConfig.c</b>.<p>There may be interactions between this routine and the POSIX <b><a href="./clockLib.html#top">clockLib</a></b>routines.  Refer to the <b><a href="./clockLib.html#top">clockLib</a></b> reference entry.<p></blockquote><h4>NOTE </h4><blockquote><p>This is a generic page for a BSP-specific routine; thisdescription  contains general information only. To determine if thisroutine is supported by your BSP, or for information specific to yourBSP's version of this routine, see the reference pages for your BSP.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the tick rate is invalid or the timer cannot beset.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><a href="./sysLib.html#sysClkEnable">sysClkEnable</a>(&nbsp;)</b>, <b><a href="./sysLib.html#sysClkRateGet">sysClkRateGet</a>(&nbsp;)</b>, <b><a href="./clockLib.html#top">clockLib</a></b>,  and BSP-specific reference pages for this routine.<hr><a name="sysAuxClkConnect"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>sysAuxClkConnect(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>sysAuxClkConnect(&nbsp;)</strong> - connect a routine to the auxiliary clock interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysAuxClkConnect    (    FUNCPTR routine,          /* routine called at each aux clock interrupt */    int     arg               /* argument to auxiliary clock interrupt */                              /* routine */     )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine specifies the interrupt service routine to be called at eachauxiliary clock interrupt.  It does not enable auxiliary clockinterrupts.<p></blockquote><h4>NOTE </h4><blockquote><p>This is a generic page for a BSP-specific routine; thisdescription  contains general information only. To determine if thisroutine is supported by your BSP, or for information specific to yourBSP's version of this routine, see the reference pages for your BSP.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the routine cannot be connected to the interrupt.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><a href="./intArchLib.html#intConnect">intConnect</a>(&nbsp;)</b>, <b><a href="./sysLib.html#sysAuxClkEnable">sysAuxClkEnable</a>(&nbsp;)</b>,  and BSP-specific reference pages for this routine.<hr><a name="sysAuxClkDisable"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>sysAuxClkDisable(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>sysAuxClkDisable(&nbsp;)</strong> - turn off auxiliary clock interrupts</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void sysAuxClkDisable (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine disables auxiliary clock interrupts.<p></blockquote><h4>NOTE </h4><blockquote><p>This is a generic page for a BSP-specific routine; thisdescription  contains general information only. To determine if thisroutine is supported by your BSP, or for information specific to yourBSP's version of this routine, see the reference pages for your BSP.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><a href="./sysLib.html#sysAuxClkEnable">sysAuxClkEnable</a>(&nbsp;)</b>,  and BSP-specific reference pages for this routine.<hr><a name="sysAuxClkEnable"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>sysAuxClkEnable(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>sysAuxClkEnable(&nbsp;)</strong> - turn on auxiliary clock interrupts</p></blockquote><h4>SYNOPSIS</h4><blockquote><p>

⌨️ 快捷键说明

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