Project

General

Profile

Statistics
| Revision:

root / trunk / docs / libdragonfly / time_8c.html @ 1398

History | View | Annotate | Download (5.25 KB)

1 241 bcoltin
<!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.c File Reference</title>
4 1398 cmar
<link href="tabs.css" rel="stylesheet" type="text/css">
5 241 bcoltin
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
</head><body>
7 1398 cmar
<!-- Generated by Doxygen 1.5.9 -->
8 1145 deffi
<div class="navigation" id="top">
9
  <div class="tabs">
10
    <ul>
11
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
13
      <li><a href="modules.html"><span>Modules</span></a></li>
14
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
15
      <li class="current"><a href="files.html"><span>Files</span></a></li>
16
    </ul>
17
  </div>
18 1398 cmar
  <div class="tabs">
19
    <ul>
20
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
21
      <li><a href="globals.html"><span>Globals</span></a></li>
22
    </ul>
23
  </div>
24 241 bcoltin
</div>
25 1145 deffi
<div class="contents">
26 1398 cmar
<h1>time.c File Reference</h1>Timer code.
27
<a href="#_details">More...</a>
28 241 bcoltin
<p>
29
<code>#include &lt;avr/interrupt.h&gt;</code><br>
30
<code>#include &lt;util/delay.h&gt;</code><br>
31 1398 cmar
<code>#include &lt;<a class="el" href="time_8h_source.html">time.h</a>&gt;</code><br>
32
<code>#include &lt;<a class="el" href="serial_8h_source.html">serial.h</a>&gt;</code><br>
33 241 bcoltin
<table border="0" cellpadding="0" cellspacing="0">
34
<tr><td></td></tr>
35 862 kwoo
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
36
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3a6108cb8e9dd91a248d8381d2871366"></a><!-- doxytag: member="time.c::WAIT_CYCLES" ref="3a6108cb8e9dd91a248d8381d2871366" args="" -->
37
#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>WAIT_CYCLES</b>&nbsp;&nbsp;&nbsp;(8000 / 10)</td></tr>
38
39 241 bcoltin
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
40
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#g8aa473f8ae9a91df4bc9ea700983c72d">delay_ms</a> (int ms)</td></tr>
41
42
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Delay execution for the specified time.  <a href="group__time.html#g8aa473f8ae9a91df4bc9ea700983c72d"></a><br></td></tr>
43
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#g4b8a034dd8e994f4a1af612806f7c553">rtc_init</a> (int prescale_opt, void(*rtc_func)(void))</td></tr>
44
45
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Enable the realtime clock.  <a href="group__time.html#g4b8a034dd8e994f4a1af612806f7c553"></a><br></td></tr>
46
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#g5c7f2bf39314463dd5f4913e05ca991d">rtc_get</a> (void)</td></tr>
47
48
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the value of the realtime clock.  <a href="group__time.html#g5c7f2bf39314463dd5f4913e05ca991d"></a><br></td></tr>
49
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#g83ae542199d1c0e964aff89537d686a3">rtc_reset</a> (void)</td></tr>
50
51
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Reset the counter of the realtime clock.  <a href="group__time.html#g83ae542199d1c0e964aff89537d686a3"></a><br></td></tr>
52
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b0a5b5264a0b00ca33322c756a85204f"></a><!-- doxytag: member="time.c::SIGNAL" ref="b0a5b5264a0b00ca33322c756a85204f" args="(TIMER3_COMPA_vect)" -->
53
&nbsp;</td><td class="memItemRight" valign="bottom"><b>SIGNAL</b> (TIMER3_COMPA_vect)</td></tr>
54
55
</table>
56 1398 cmar
<hr><h2>Detailed Description</h2>
57 241 bcoltin
Timer code.
58
<p>
59
Copyright (c) 2007 Colony Project<p>
60
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:<p>
61
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.<p>
62
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.<p>
63
Implementation of functions for timers.<p>
64
<dl class="author" compact><dt><b>Author:</b></dt><dd>Colony Project, CMU Robotics Club </dd></dl>
65 1145 deffi
</div>
66 1398 cmar
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Sep 7 19:07:28 2009 for libdragonfly by&nbsp;
67 241 bcoltin
<a href="http://www.doxygen.org/index.html">
68 1398 cmar
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
69 241 bcoltin
</body>
70
</html>