<ahref="evtimer_8c.html">Go to the documentation of this file.</a><divclass="fragment"><preclass="fragment"><aname="l00001"></a>00001 <spanclass="comment">/*</span>
<aname="l00034"></a>00034 <spanclass="preprocessor">#include "<aclass="code"href="ch_8h.html"title="ChibiOS/RT main include file.">ch.h</a>"</span>
<aname="l00035"></a>00035 <spanclass="preprocessor">#include "<aclass="code"href="evtimer_8h.html"title="Events Generator Timer structures and macros.">evtimer.h</a>"</span>
<aname="l00040"></a>00040 <aclass="code"href="group__events.html#gaa24d9bed5b676b577200c4a8ebe3b8a3"title="Signals all the Event Listeners registered on the specified Event Source.">chEvtBroadcastI</a>(&etp->et_es);
<aname="l00041"></a>00041 <aclass="code"href="group__time.html#ga1c44c3a0bc64b2954d95cd98b2e7124e"title="Enables a virtual timer.">chVTSetI</a>(&etp->et_vt, etp->et_interval, tmrcb, etp);
<aname="l00050"></a>00050 <spanclass="keywordtype">void</span><aclass="code"href="group__event__timer.html#gaa58fe826b42e0d64f32b6a40f54bb430"title="Starts the timer.">evtStart</a>(<aclass="code"href="struct_ev_timer.html"title="Event timer structure.">EvTimer</a> *etp) {
<aname="l00051"></a>00051
<aname="l00052"></a>00052 <aclass="code"href="group__system.html#ga9f6573c0763d1e4e97c63c62edad6e42"title="Enters the kernel lock mode.">chSysLock</a>();
<aname="l00053"></a>00053
<aname="l00054"></a>00054 <spanclass="keywordflow">if</span> (!<aclass="code"href="group__time.html#gae54e6dd40bc7b9cdeb409393ec9e134a"title="Returns TRUE if the speciified timer is armed.">chVTIsArmedI</a>(&etp->et_vt))
<aname="l00055"></a>00055 <aclass="code"href="group__time.html#ga1c44c3a0bc64b2954d95cd98b2e7124e"title="Enables a virtual timer.">chVTSetI</a>(&etp->et_vt, etp->et_interval, tmrcb, etp);
<aname="l00056"></a>00056
<aname="l00057"></a>00057 <aclass="code"href="group__system.html#ga5a257fa58a09815eb64a45e2dfbdc22e"title="Leaves the kernel lock mode.">chSysUnlock</a>();
<aname="l00066"></a>00066 <spanclass="keywordtype">void</span><aclass="code"href="group__event__timer.html#ga667900146fd2bc35721e072ae5b0e433"title="Stops the timer.">evtStop</a>(<aclass="code"href="struct_ev_timer.html"title="Event timer structure.">EvTimer</a> *etp) {
<aname="l00067"></a>00067
<aname="l00068"></a>00068 <aclass="code"href="group__system.html#ga9f6573c0763d1e4e97c63c62edad6e42"title="Enters the kernel lock mode.">chSysLock</a>();
<aname="l00069"></a>00069
<aname="l00070"></a>00070 <spanclass="keywordflow">if</span> (<aclass="code"href="group__time.html#gae54e6dd40bc7b9cdeb409393ec9e134a"title="Returns TRUE if the speciified timer is armed.">chVTIsArmedI</a>(&etp->et_vt))
<aname="l00071"></a>00071 <aclass="code"href="group__time.html#ga680d851a74e594cc965101e79891840f"title="Disables a Virtual Timer.">chVTResetI</a>(&etp->et_vt);
<aname="l00072"></a>00072
<aname="l00073"></a>00073 <aclass="code"href="group__system.html#ga5a257fa58a09815eb64a45e2dfbdc22e"title="Leaves the kernel lock mode.">chSysUnlock</a>();
Generated on Sun Nov 28 2010 14:09:49 for ChibiOS/RT by <ahref="http://www.doxygen.org/index.html"><imgsrc="doxygen.png"alt="doxygen"align="middle"border="0"></a> 1.7.1</small></address>