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

📄 x-timestamp5.html

📁 vxworks相关论文
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title>    Creating a VxWorks Timestamp Driver   </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="x-timestamp.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="x-timestamp.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="x-timestamp4.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="x-timestamp6.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="85789">G.5  &nbsp;&nbsp;Using the Timestamp Driver with WindView</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85790"> </a>Although the timestamp timer is meant to be a general facility, some specific information is needed to use it with the kernel instrumentation support for WindView. This section describes the configuration and attachment of the timestamp driver to the VxWorks kernel instrumentation.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="85791">Attaching the Timestamp Driver to VxWorks</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85792"> </a>For information on configuring timestamp drivers into VxWorks, see the <i class="textVariable">Tornado User's Guide: Projects</i>. The configuration macro for this facility is <b class="symbol_UC">INCLUDE_TIMESTAMP</b>; selecting it makes the timestamp timer routines available to instrumentation logging routines with <b class="routine"><i class="routine">wvTmrRegister</i></b><b>(&nbsp;)</b>.<sup><a href="#foot"><b class="FootnoteMarker">1</b></a></sup> This enables the code in <b class="routine"><i class="routine">usrRoot</i></b><b>(&nbsp;)</b> (in <i class="textVariable">installDir</i><b class="file">/target/config/all/usrConfig.c</b>) that connects the timestamp driver to the VxWorks kernel instrumentation package. </p><dd><p class="Body"><a name="85799"> </a>If you use the standard routine names (described in <a href="x-timestamp3.html#85658"><i class="title">G.3&nbsp;Timestamp Driver Interface</i></a>), no other changes are necessary. However, you can also create routines with custom names. This is necessary if a VxWorks timestamp driver is already available for a particular target board, and an alternate driver is to be connected. If this is the case, define <b class="symbol_UC">INCLUDE_USER_TIMESTAMP</b> as well as <b class="symbol_UC">INCLUDE_TIMESTAMP</b>, to connect the routines named by the <b class="symbol_UC">USER_TIME</b><i class="textVariable">xxx</i> macros instead of the default timestamp routines. This does not change in any way the functionality required for any of the routines. It merely provides the ability to connect routines with different names. The connected routines must still adhere to the requirements and functionality specified in <a href="x-timestamp3.html#85658"><i class="title">G.3&nbsp;Timestamp Driver Interface</i></a>.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="85803">Using the System Clock</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85804"> </a>The kernel instrumentation expects each rollover event to trigger a call to the timestamp callback routine (saved in the variable <b class="symbol_lc">sysTimestampRoutine</b>). As described in section <a href="x-timestamp4.html#85777"><i class="title">Using the VxWorks System Clock Timer</i></a>, the timestamp driver may use the VxWorks system clock facility. If <b class="routine"><i class="routine">sysTimestampConnect</i></b><b>(&nbsp;)</b> returns <b class="symbol_UC">ERROR</b>, the VxWorks kernel instrumentation assumes the system clock is used, and relies on the system clock tick to signal a timestamp timer rollover event.</p></dl></dl><a name="foot"><hr></a><p class="FootnoteNumberMarker">1:&nbsp;<span class="Footnote"><a name="85795"> </a>See the <i class="title">VxWorks Reference Manual</i> or the reference entry online for information about <b class="routine"><i class="routine">wvTmrRegister</i></b><b>(&nbsp;)</b>.</span><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="x-timestamp.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="x-timestamp.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="x-timestamp4.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="x-timestamp6.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p></body></html><!---by WRS Documentation (), Wind River Systems, Inc.    conversion tool:  Quadralay WebWorks Publisher 4.0.11    template:         CSS Template, Jan 1998 - Jefro --->

⌨️ 快捷键说明

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