1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>OS_SetTick</TITLE>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">OS_SetTick <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<DL>
14  <DD>
15  <PRE><CODE>#include &lt;nitro/os.h&gt;</CODE></PRE>
16  <PRE><CODE>void OS_SetTick( OSTick count );
17  </CODE></PRE>
18</DL>
19<H2>Arguments</H2>
20<TABLE border="1" width="100%">
21  <TBODY>
22    <TR>
23      <TD width="13%"><EM><STRONG>count</STRONG></EM></TD>
24      <TD width="87%">The tick value to be set</TD>
25    </TR>
26  </TBODY>
27</TABLE>
28<H2>Return Values</H2>
29<P>None.</P>
30<H2>Description</H2>
31<P>Sets a tick value.</P>
32<P>Ticks must be initialized with the <CODE><A href="OS_InitTick.html">OS_InitTick</A></CODE> function before calling this function.</P>
33<P>This function sets the lower 16 bits as the timer count value portion of the tick; it sets the upper 48 bits as the timer's interrupt count counter value (<code>u64</code>).</P>
34<P>The alarm system uses the tick value to calculate the timing at which to call alarm handlers. Alarms you are using may not function properly if you change the tick value without considering them.</P>
35<H2>See Also</H2>
36<P><code><a href="OS_InitTick.html">OS_InitTick</a></code>, <code><a href="OS_GetTick.html">OS_GetTick</a></code></P>
37<H2>Revision History</H2>
38<P>2004/02/25 Changed systemClock to tick. <BR>2004/02/23 System clock counter from u32 to u64. <BR>2004/02/04 Initial version.</P>
39<hr><p>CONFIDENTIAL</p></body>
40</HTML>