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_InitAlarm</TITLE> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">OS_InitAlarm <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 <nitro/os.h></CODE></PRE> 16 <PRE><CODE>void OS_InitAlarm( void ); 17 </CODE></PRE> 18</DL> 19<H2>Arguments</H2> 20<P>None.</P> 21<H2>Return Values</H2> 22<P>None.</P> 23<H2>Description</H2> 24<P>Allocates a timer to the alarm system and initializes the alarm system.</P> 25<P>The alarm system uses ticks. Therefore, <CODE><A href="../time/OS_InitTick.html">OS_InitTick()</A></CODE> must be called and a timer allocated before this function is called.</P> 26<P>Call <CODE><A href="OS_EndAlarm.html">OS_EndAlarm()</A></CODE> to terminate the alarm system and release the allocated timer.</P> 27<H2>See Also</H2> 28<P><CODE><A href="OS_EndAlarm.html">OS_EndAlarm</A>, <A href="OS_CreateAlarm.html">OS_CreateAlarm</A>, <A href="OS_SetAlarm.html">OS_SetAlarm</A>, 29 <A href="../time/OS_InitTick.html">OS_InitTick</A></CODE></P> 30<H2>Revision History</H2> 31<P>2004/02/25 Changed <code>systemClock</code> to <code>tick</code>.<br /> 2004/02/04 Initial version.</P> 32<hr><p>CONFIDENTIAL</p></body> 33</HTML>