Project

General

Profile

Statistics
| Revision:

root / trunk / docs / libdragonfly / time_8h-source.html @ 241

History | View | Annotate | Download (4.53 KB)

1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
<title>libdragonfly: time.h Source File</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
6
</head><body>
7
<!-- Generated by Doxygen 1.5.3 -->
8
<div class="tabs">
9
  <ul>
10
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11
    <li><a href="modules.html"><span>Modules</span></a></li>
12
    <li class="current"><a href="files.html"><span>Files</span></a></li>
13
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
14
  </ul>
15
</div>
16
<h1>time.h</h1><a href="time_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
17
<a name="l00037"></a>00037 <span class="preprocessor">#ifndef _TIME_H_</span>
18
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#define _TIME_H_</span>
19
<a name="l00039"></a>00039 <span class="preprocessor"></span>
20
<a name="l00040"></a>00040 <span class="comment">/*      Predefined times for prescale_opt in time.c.</span>
21
<a name="l00041"></a>00041 <span class="comment">        To make you own, know that a pulse is 1/16th of a second. You cannot get less than this. To get more, you need</span>
22
<a name="l00042"></a>00042 <span class="comment">        to know how many 16ths of a second are in the time you want. (Time_desired * 16 = prescaler_opt)</span>
23
<a name="l00043"></a>00043 <span class="comment">*/</span>
24
<a name="l00049"></a><a class="code" href="group__time.html#gd271145628da4e0e85e3e2486d117713">00049</a> <span class="preprocessor">#define SIXTEENTH_SECOND 1</span>
25
<a name="l00050"></a>00050 <span class="preprocessor"></span>
26
<a name="l00051"></a><a class="code" href="group__time.html#g7bdae984203001070e9abeb3190f844a">00051</a> <span class="preprocessor">#define EIGTH_SECOND 2</span>
27
<a name="l00052"></a>00052 <span class="preprocessor"></span>
28
<a name="l00053"></a><a class="code" href="group__time.html#g0b2a348d9afca1f1182bc2bb2aa6a3d1">00053</a> <span class="preprocessor">#define QUARTER_SECOND 4</span>
29
<a name="l00054"></a>00054 <span class="preprocessor"></span>
30
<a name="l00055"></a><a class="code" href="group__time.html#gf95f27544f39827250d6bef6fa5fe18e">00055</a> <span class="preprocessor">#define HALF_SECOND     8</span>
31
<a name="l00056"></a>00056 <span class="preprocessor"></span>
32
<a name="l00057"></a><a class="code" href="group__time.html#g94212be2394d2d37d9dfd33d07d82dba">00057</a> <span class="preprocessor">#define SECOND 16</span>
33
<a name="l00058"></a>00058 <span class="preprocessor"></span>
34
<a name="l00059"></a><a class="code" href="group__time.html#g4c2dc0c899e1571596205f29fcc35cd6">00059</a> <span class="preprocessor">#define TWO_SECOND 32</span>
35
<a name="l00060"></a>00060 <span class="preprocessor"></span>
36
<a name="l00061"></a><a class="code" href="group__time.html#g335312d1eed285bbc48a7f383ad78d97">00061</a> <span class="preprocessor">#define FOUR_SECOND 64</span>
37
<a name="l00062"></a>00062 <span class="preprocessor"></span>
38
<a name="l00064"></a>00064 <span class="keywordtype">void</span> <a class="code" href="group__time.html#g8aa473f8ae9a91df4bc9ea700983c72d" title="Delay execution for the specified time.">delay_ms</a>(<span class="keywordtype">int</span> ms) ;
39
<a name="l00066"></a>00066 <span class="keywordtype">void</span> <a class="code" href="group__time.html#g4b8a034dd8e994f4a1af612806f7c553" title="Enable the realtime clock.">rtc_init</a>(<span class="keywordtype">int</span> prescale_opt, <span class="keywordtype">void</span> (*rtc_func)(<span class="keywordtype">void</span>));
40
<a name="l00068"></a>00068 <span class="keywordtype">void</span> <a class="code" href="group__time.html#g83ae542199d1c0e964aff89537d686a3" title="Reset the counter of the realtime clock.">rtc_reset</a>(<span class="keywordtype">void</span>);
41
<a name="l00070"></a>00070 <span class="keywordtype">int</span> <a class="code" href="group__time.html#g5c7f2bf39314463dd5f4913e05ca991d" title="Get the value of the realtime clock.">rtc_get</a>(<span class="keywordtype">void</span>);
42
<a name="l00071"></a>00071 
43
<a name="l00074"></a>00074 <span class="preprocessor">#endif</span>
44
<a name="l00075"></a>00075 <span class="preprocessor"></span>
45
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Thu Nov 8 23:15:40 2007 for libdragonfly by&nbsp;
46
<a href="http://www.doxygen.org/index.html">
47
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
48
</body>
49
</html>