Revision 1145
Generated documentation for new orbs code
dragonfly__lib_8h-source.html | ||
---|---|---|
4 | 4 |
<link href="doxygen.css" rel="stylesheet" type="text/css"> |
5 | 5 |
<link href="tabs.css" rel="stylesheet" type="text/css"> |
6 | 6 |
</head><body> |
7 |
<!-- Generated by Doxygen 1.5.3 --> |
|
8 |
<div class="tabs"> |
|
9 |
<ul> |
|
10 |
<li><a href="index.html"><span>Main Page</span></a></li> |
|
11 |
<li><a href="modules.html"><span>Modules</span></a></li> |
|
12 |
<li><a href="annotated.html"><span>Data Structures</span></a></li> |
|
13 |
<li class="current"><a href="files.html"><span>Files</span></a></li> |
|
14 |
<li><a href="pages.html"><span>Related Pages</span></a></li> |
|
15 |
</ul> |
|
16 |
</div> |
|
7 |
<!-- Generated by Doxygen 1.5.5 --> |
|
8 |
<div class="navigation" id="top"> |
|
9 |
<div class="tabs"> |
|
10 |
<ul> |
|
11 |
<li><a href="index.html"><span>Main Page</span></a></li> |
|
12 |
<li><a href="pages.html"><span>Related Pages</span></a></li> |
|
13 |
<li><a href="modules.html"><span>Modules</span></a></li> |
|
14 |
<li><a href="annotated.html"><span>Data Structures</span></a></li> |
|
15 |
<li class="current"><a href="files.html"><span>Files</span></a></li> |
|
16 |
</ul> |
|
17 |
</div> |
|
17 | 18 |
<h1>dragonfly_lib.h</h1><a href="dragonfly__lib_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 |
18 | 19 |
<a name="l00036"></a>00036 <span class="preprocessor">#ifndef _DRAGONFLY_LIB_H_</span> |
19 | 20 |
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#define _DRAGONFLY_LIB_H_</span> |
... | ... | |
31 | 32 |
<a name="l00055"></a>00055 <span class="preprocessor"></span> |
32 | 33 |
<a name="l00056"></a><a class="code" href="group__dragonfly.html#g9bb31bba359fbb679910df0a6efde5a3">00056</a> <span class="preprocessor">#define MOTORS 0x08</span> |
33 | 34 |
<a name="l00057"></a>00057 <span class="preprocessor"></span> |
34 |
<a name="l00058"></a><a class="code" href="group__dragonfly.html#g145103118f6d9d1129aa4509cf214a13">00058</a> <span class="preprocessor">#define BUZZER 0x10</span>
|
|
35 |
<a name="l00058"></a><a class="code" href="group__dragonfly.html#g457a9aa93dbb216459873a30bdb4d84a">00058</a> <span class="preprocessor">#define I2C 0x20</span>
|
|
35 | 36 |
<a name="l00059"></a>00059 <span class="preprocessor"></span> |
36 |
<a name="l00060"></a><a class="code" href="group__dragonfly.html#gbf2d80992dcfabfd1668184c3dff2733">00060</a> <span class="preprocessor">#define LCD 0x20</span>
|
|
37 |
<a name="l00060"></a><a class="code" href="group__dragonfly.html#g145103118f6d9d1129aa4509cf214a13">00060</a> <span class="preprocessor">#define BUZZER 0x40</span>
|
|
37 | 38 |
<a name="l00061"></a>00061 <span class="preprocessor"></span> |
38 |
<a name="l00062"></a><a class="code" href="group__dragonfly.html#g1252cf7a07df96ed2561ae605eaca197">00062</a> <span class="preprocessor">#define ALL_ON 0xFF</span>
|
|
39 |
<a name="l00062"></a><a class="code" href="group__dragonfly.html#gbf2d80992dcfabfd1668184c3dff2733">00062</a> <span class="preprocessor">#define LCD 0x80</span>
|
|
39 | 40 |
<a name="l00063"></a>00063 <span class="preprocessor"></span> |
40 |
<a name="l00064"></a>00064 |
|
41 |
<a name="l00066"></a>00066 <span class="keywordtype">void</span> <a class="code" href="group__dragonfly.html#g8124e2c32bf25208586d500e45ba5fe3" title="Initialize the board.">dragonfly_init</a>(<span class="keywordtype">int</span> config); |
|
42 |
<a name="l00067"></a>00067 <span class="comment">//end addtogroup</span> |
|
43 |
<a name="l00069"></a>00069 |
|
44 |
<a name="l00070"></a>00070 <span class="preprocessor">#include <inttypes.h></span> |
|
45 |
<a name="l00071"></a>00071 <span class="preprocessor">#include <stdio.h></span> |
|
46 |
<a name="l00072"></a>00072 <span class="preprocessor">#include <stdlib.h></span> |
|
47 |
<a name="l00073"></a>00073 <span class="preprocessor">#include <avr/io.h></span> |
|
48 |
<a name="l00074"></a>00074 <span class="preprocessor">#include <avr/interrupt.h></span> |
|
49 |
<a name="l00075"></a>00075 <span class="preprocessor">#include <util/delay.h></span> |
|
50 |
<a name="l00076"></a>00076 <span class="preprocessor">#include <util/twi.h></span> |
|
51 |
<a name="l00077"></a>00077 |
|
52 |
<a name="l00078"></a>00078 <span class="preprocessor">#include <<a class="code" href="analog_8h.html" title="Contains functions and definitions for using the ADC.">analog.h</a>></span> |
|
53 |
<a name="l00079"></a>00079 <span class="preprocessor">#include <<a class="code" href="dio_8h.html" title="Definitions for digital input / output.">dio.h</a>></span> |
|
54 |
<a name="l00080"></a>00080 <span class="preprocessor">#include <<a class="code" href="time_8h.html" title="Contains time-related functions and definitions.">time.h</a>></span> |
|
55 |
<a name="l00081"></a>00081 <span class="preprocessor">#include <<a class="code" href="lcd_8h.html" title="Contains definitions for dealing with the LCD screen.">lcd.h</a>></span> |
|
56 |
<a name="l00082"></a>00082 <span class="preprocessor">#include <<a class="code" href="lights_8h.html" title="Contains declarations for managing the orbs.">lights.h</a>></span> |
|
57 |
<a name="l00083"></a>00083 <span class="preprocessor">#include <<a class="code" href="motor_8h.html" title="Contains definitions for controlling the motors.">motor.h</a>></span> |
|
58 |
<a name="l00084"></a>00084 <span class="preprocessor">#include <<a class="code" href="serial_8h.html" title="Contains declarations for serial input and output.">serial.h</a>></span> |
|
59 |
<a name="l00085"></a>00085 <span class="preprocessor">#include <<a class="code" href="buzzer_8h.html" title="Contains definitions for using the buzzer.">buzzer.h</a>></span> |
|
60 |
<a name="l00086"></a>00086 <span class="preprocessor">#include <<a class="code" href="rangefinder_8h.html" title="Contains rangefinder declarations and functions.">rangefinder.h</a>></span> |
|
61 |
<a name="l00087"></a>00087 <span class="preprocessor">#include <<a class="code" href="bom_8h.html" title="Definitions for using the BOM.">bom.h</a>></span> |
|
62 |
<a name="l00088"></a>00088 <span class="preprocessor">#include <<a class="code" href="move_8h.html" title="Contains definitions for controlling robot motion.">move.h</a>></span> |
|
63 |
<a name="l00089"></a>00089 <span class="preprocessor">#include <<a class="code" href="reset_8h.html" title="Contains function(s) for resetting the robots.">reset.h</a>></span> |
|
64 |
<a name="l00090"></a>00090 <span class="preprocessor">#include <<a class="code" href="math_8h.html" title="Contains math function(s).">math.h</a>></span> |
|
65 |
<a name="l00091"></a>00091 |
|
66 |
<a name="l00092"></a>00092 <span class="preprocessor">#endif</span> |
|
67 |
<a name="l00093"></a>00093 <span class="preprocessor"></span> |
|
68 |
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Wed Nov 5 19:59:42 2008 for libdragonfly by |
|
41 |
<a name="l00064"></a><a class="code" href="group__dragonfly.html#gc04dd0afaf7ea3eb2ade2544d2d5f907">00064</a> <span class="preprocessor">#define RANGE 0x0100</span> |
|
42 |
<a name="l00065"></a>00065 <span class="preprocessor"></span> |
|
43 |
<a name="l00066"></a><a class="code" href="group__dragonfly.html#gd555cfe7a1fcf16c3639f797120478eb">00066</a> <span class="preprocessor">#define BOM 0x0200</span> |
|
44 |
<a name="l00067"></a>00067 <span class="preprocessor"></span> |
|
45 |
<a name="l00068"></a><a class="code" href="group__dragonfly.html#g1252cf7a07df96ed2561ae605eaca197">00068</a> <span class="preprocessor">#define ALL_ON 0x03FF</span> |
|
46 |
<a name="l00069"></a>00069 <span class="preprocessor"></span> |
|
47 |
<a name="l00071"></a>00071 <span class="keywordtype">void</span> <a class="code" href="group__dragonfly.html#g8124e2c32bf25208586d500e45ba5fe3" title="Initialize the board.">dragonfly_init</a>(<span class="keywordtype">int</span> config); |
|
48 |
<a name="l00072"></a>00072 <span class="comment">//end addtogroup</span> |
|
49 |
<a name="l00074"></a>00074 |
|
50 |
<a name="l00075"></a>00075 <span class="preprocessor">#include <inttypes.h></span> |
|
51 |
<a name="l00076"></a>00076 <span class="preprocessor">#include <stdio.h></span> |
|
52 |
<a name="l00077"></a>00077 <span class="preprocessor">#include <stdlib.h></span> |
|
53 |
<a name="l00078"></a>00078 <span class="preprocessor">#include <avr/io.h></span> |
|
54 |
<a name="l00079"></a>00079 <span class="preprocessor">#include <avr/interrupt.h></span> |
|
55 |
<a name="l00080"></a>00080 <span class="preprocessor">#include <util/delay.h></span> |
|
56 |
<a name="l00081"></a>00081 <span class="preprocessor">#include <util/twi.h></span> |
|
57 |
<a name="l00082"></a>00082 |
|
58 |
<a name="l00083"></a>00083 <span class="comment">// This file is included from the libdragonfly directory because it seems to be</span> |
|
59 |
<a name="l00084"></a>00084 <span class="comment">// missing from the AVR libc distribution.</span> |
|
60 |
<a name="l00085"></a>00085 <span class="preprocessor">#include "<a class="code" href="atomic_8h.html">atomic.h</a>"</span> |
|
61 |
<a name="l00086"></a>00086 |
|
62 |
<a name="l00087"></a>00087 <span class="preprocessor">#include <<a class="code" href="analog_8h.html" title="Contains functions and definitions for using the ADC.">analog.h</a>></span> |
|
63 |
<a name="l00088"></a>00088 <span class="preprocessor">#include <<a class="code" href="dio_8h.html" title="Definitions for digital input / output.">dio.h</a>></span> |
|
64 |
<a name="l00089"></a>00089 <span class="preprocessor">#include <<a class="code" href="time_8h.html" title="Contains time-related functions and definitions.">time.h</a>></span> |
|
65 |
<a name="l00090"></a>00090 <span class="preprocessor">#include <<a class="code" href="lcd_8h.html" title="Contains definitions for dealing with the LCD screen.">lcd.h</a>></span> |
|
66 |
<a name="l00091"></a>00091 <span class="preprocessor">#include <<a class="code" href="lights_8h.html" title="Contains declarations for managing the orbs.">lights.h</a>></span> |
|
67 |
<a name="l00092"></a>00092 <span class="preprocessor">#include <<a class="code" href="motor_8h.html" title="Contains definitions for controlling the motors.">motor.h</a>></span> |
|
68 |
<a name="l00093"></a>00093 <span class="preprocessor">#include <<a class="code" href="serial_8h.html" title="Contains declarations for serial input and output.">serial.h</a>></span> |
|
69 |
<a name="l00094"></a>00094 <span class="preprocessor">#include <<a class="code" href="buzzer_8h.html" title="Contains definitions for using the buzzer.">buzzer.h</a>></span> |
|
70 |
<a name="l00095"></a>00095 <span class="preprocessor">#include <<a class="code" href="rangefinder_8h.html" title="Contains rangefinder declarations and functions.">rangefinder.h</a>></span> |
|
71 |
<a name="l00096"></a>00096 <span class="preprocessor">#include <<a class="code" href="bom_8h.html" title="Definitions for using the BOM.">bom.h</a>></span> |
|
72 |
<a name="l00097"></a>00097 <span class="preprocessor">#include <<a class="code" href="move_8h.html" title="Contains definitions for controlling robot motion.">move.h</a>></span> |
|
73 |
<a name="l00098"></a>00098 <span class="preprocessor">#include <<a class="code" href="reset_8h.html" title="Contains function(s) for resetting the robots.">reset.h</a>></span> |
|
74 |
<a name="l00099"></a>00099 <span class="preprocessor">#include <math.h></span> |
|
75 |
<a name="l00100"></a>00100 <span class="preprocessor">#include <<a class="code" href="eeprom_8h.html" title="handles eeprom storage for persistent data">eeprom.h</a>></span> |
|
76 |
<a name="l00101"></a>00101 <span class="preprocessor">#include <stdbool.h></span> |
|
77 |
<a name="l00102"></a>00102 |
|
78 |
<a name="l00104"></a><a class="code" href="dragonfly__lib_8h.html#9ac82e856c7683e23553431e5224d5f4">00104</a> <span class="preprocessor">#define SYNC ATOMIC_BLOCK(ATOMIC_RESTORESTATE)</span> |
|
79 |
<a name="l00105"></a>00105 <span class="preprocessor"></span> |
|
80 |
<a name="l00107"></a><a class="code" href="dragonfly__lib_8h.html#63040a270fd14fe3286e2b67e5927eb9">00107</a> <span class="preprocessor">#define REQUIRE_LOCK_OR_RETURN(LOCK) do { SYNC { if (LOCK) return; LOCK=1; } } while (0)</span> |
|
81 |
<a name="l00108"></a>00108 <span class="preprocessor"></span> |
|
82 |
<a name="l00110"></a><a class="code" href="dragonfly__lib_8h.html#c25d1a234d2aa700c3d5cce7ecff803a">00110</a> <span class="preprocessor">#define RELEASE_LOCK(LOCK) do { LOCK=0; } while (0)</span> |
|
83 |
<a name="l00111"></a>00111 <span class="preprocessor"></span> |
|
84 |
<a name="l00112"></a>00112 |
|
85 |
<a name="l00113"></a>00113 |
|
86 |
<a name="l00114"></a>00114 <span class="preprocessor">#endif</span> |
|
87 |
<a name="l00115"></a>00115 <span class="preprocessor"></span> |
|
88 |
</pre></div></div> |
|
89 |
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Apr 16 18:33:23 2009 for libdragonfly by |
|
69 | 90 |
<a href="http://www.doxygen.org/index.html"> |
70 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
|
|
91 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
|
71 | 92 |
</body> |
72 | 93 |
</html> |
Also available in: Unified diff