Project

General

Profile

Revision 1371

Added by Rich Hong over 14 years ago

Remove some unused code in encoders

Also update binary and docs

View differences:

serial_8h-source.html
49 49
<a name="l00068"></a>00068 <span class="preprocessor">#ifndef _SERIAL_H</span>
50 50
<a name="l00069"></a>00069 <span class="preprocessor"></span><span class="preprocessor">#define _SERIAL_H</span>
51 51
<a name="l00070"></a>00070 <span class="preprocessor"></span>
52
<a name="l00080"></a>00080 <span class="comment">// if no baud rate is defined for usb, default is set here</span>
53
<a name="l00081"></a>00081 <span class="preprocessor">#ifndef USB_BAUD</span>
54
<a name="l00082"></a>00082 <span class="preprocessor"></span>
55
<a name="l00083"></a><a class="code" href="group__usb.html#g378065b4d75b008228ee41cc335474a7">00083</a> <span class="preprocessor">#define USB_BAUD 115200</span>
56
<a name="l00084"></a>00084 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
52
<a name="l00071"></a>00071 <span class="preprocessor">#include &lt;inttypes.h&gt;</span>
53
<a name="l00072"></a>00072 <span class="preprocessor">#include &lt;avr/pgmspace.h&gt;</span>
54
<a name="l00073"></a>00073 
55
<a name="l00083"></a>00083 <span class="comment">// if no baud rate is defined for usb, default is set here</span>
56
<a name="l00084"></a>00084 <span class="preprocessor">#ifndef USB_BAUD</span>
57 57
<a name="l00085"></a>00085 <span class="preprocessor"></span>
58
<a name="l00087"></a>00087 <span class="keywordtype">void</span> <a class="code" href="group__usb.html#gddfbdb66f507ffcd08b4496531ed0a3d" title="Initialize the USB.">usb_init</a>(<span class="keywordtype">void</span>);
59
<a name="l00089"></a>00089 <span class="keywordtype">int</span> <a class="code" href="group__usb.html#g3ee898cfe59d05c428c56021c2ccf946" title="Print a character to USB.">usb_putc</a>(<span class="keywordtype">char</span> c);
60
<a name="l00091"></a>00091 <span class="keywordtype">int</span> <a class="code" href="group__usb.html#g053a5d887edfe8e8be543ec53a3f60ae" title="Read a character from USB.">usb_getc</a>(<span class="keywordtype">void</span>);
61
<a name="l00093"></a>00093 <span class="keywordtype">int</span> <a class="code" href="group__usb.html#g6b1209b19e7fd2bbedc7407e0218453c" title="Read a character from USB without blocking.">usb_getc_nb</a>(<span class="keywordtype">char</span> *c);
62
<a name="l00095"></a>00095 <span class="keywordtype">int</span> <a class="code" href="group__usb.html#g6e101f68856f272f67923c4fb35a99e0" title="Print a string to USB.">usb_puts</a>(<span class="keywordtype">char</span> *s);
63
<a name="l00097"></a>00097 <span class="keywordtype">int</span> <a class="code" href="group__usb.html#gcd371dedbff10f0c52dca4b3b7af9e3d" title="Print an integer to USB.">usb_puti</a>(<span class="keywordtype">int</span> value);
64
<a name="l00099"></a>00099 uint8_t <a class="code" href="group__usb.html#g94d47853c33da12c71dec155f819cfeb" title="Determine a hexadecimal digit.">hex_digit</a> (uint8_t value);
65
<a name="l00101"></a>00101 <span class="keywordtype">void</span> <a class="code" href="group__usb.html#g8e7e31f1e45721ac032267b13d0f759b" title="Print a fixed width hexadecimal representation to USB.">usb_puth16</a> (uint16_t value);
66
<a name="l00103"></a>00103 <span class="keywordtype">void</span> <a class="code" href="group__usb.html#g21462df541911e0611416e85be6ea34d" title="Print a fixed width hexadecimal representation to USB.">usb_puth8</a>(uint8_t value);
67
<a name="l00105"></a>00105 <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> usb_puth (uint16_t value) { <a class="code" href="group__usb.html#g8e7e31f1e45721ac032267b13d0f759b" title="Print a fixed width hexadecimal representation to USB.">usb_puth16</a> (value); };
68
<a name="l00106"></a>00106 
69
<a name="l00107"></a>00107  <span class="comment">//end addtogroup</span>
70
<a name="l00109"></a>00109 
71
<a name="l00119"></a>00119 <span class="comment">// if no baud rate is defined for usb, default is set here</span>
72
<a name="l00120"></a>00120 
73
<a name="l00121"></a>00121 <span class="comment">// if no baud rate is defined for xbee, default is set here</span>
74
<a name="l00122"></a>00122 <span class="preprocessor">#ifndef XBEE_BAUD</span>
75
<a name="l00123"></a>00123 <span class="preprocessor"></span>
76
<a name="l00124"></a><a class="code" href="group__xbee.html#g7125fc8f3df24a2db8e074983206b054">00124</a> <span class="preprocessor">#define XBEE_BAUD 9600</span>
77
<a name="l00125"></a>00125 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
78
<a name="l00126"></a>00126 <span class="preprocessor"></span>
79
<a name="l00128"></a>00128 <span class="keywordtype">void</span> <a class="code" href="group__xbee.html#g964a1e8461e9c1187e5d69f521e5e107" title="Initialize the XBee.">xbee_init</a>(<span class="keywordtype">void</span>);
80
<a name="l00130"></a>00130 <span class="keywordtype">int</span> <a class="code" href="group__xbee.html#g70c6b231330312d4f69b9a8afb5af989" title="Print a character to the XBee.">xbee_putc</a>(<span class="keywordtype">char</span> c);
81
<a name="l00132"></a>00132 <span class="keywordtype">int</span> <a class="code" href="group__xbee.html#g1f468ae159ba5d97bdfb3f4855d15d88" title="Read a character from the XBee.">xbee_getc</a>(<span class="keywordtype">void</span>);
82
<a name="l00134"></a>00134 <span class="keywordtype">int</span> <a class="code" href="group__xbee.html#gfb7bd5dd535e8251bfff78854c6c15f2" title="Read a character from the XBee without blocking.">xbee_getc_nb</a>(<span class="keywordtype">char</span> *c);
83
<a name="l00135"></a>00135 
84
<a name="l00136"></a>00136 
85
<a name="l00137"></a>00137  <span class="comment">//end addtogroup</span>
86
<a name="l00139"></a>00139 
87
<a name="l00140"></a>00140 <span class="preprocessor">#endif</span>
88
<a name="l00141"></a>00141 <span class="preprocessor"></span>
58
<a name="l00086"></a><a class="code" href="group__usb.html#g378065b4d75b008228ee41cc335474a7">00086</a> <span class="preprocessor">#define USB_BAUD 115200</span>
59
<a name="l00087"></a>00087 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
60
<a name="l00088"></a>00088 <span class="preprocessor"></span>
61
<a name="l00090"></a>00090 <span class="keywordtype">void</span> <a class="code" href="group__usb.html#gddfbdb66f507ffcd08b4496531ed0a3d" title="Initialize the USB.">usb_init</a>(<span class="keywordtype">void</span>);
62
<a name="l00092"></a>00092 <span class="keywordtype">int</span> <a class="code" href="group__usb.html#g3ee898cfe59d05c428c56021c2ccf946" title="Print a character to USB.">usb_putc</a>(<span class="keywordtype">char</span> c);
63
<a name="l00094"></a>00094 <span class="keywordtype">int</span> <a class="code" href="group__usb.html#g053a5d887edfe8e8be543ec53a3f60ae" title="Read a character from USB.">usb_getc</a>(<span class="keywordtype">void</span>);
64
<a name="l00096"></a>00096 <span class="keywordtype">int</span> <a class="code" href="group__usb.html#g6b1209b19e7fd2bbedc7407e0218453c" title="Read a character from USB without blocking.">usb_getc_nb</a>(<span class="keywordtype">char</span> *c);
65
<a name="l00098"></a>00098 <span class="keywordtype">int</span> <a class="code" href="group__usb.html#g6e101f68856f272f67923c4fb35a99e0" title="Print a string to USB.">usb_puts</a>(<span class="keywordtype">char</span> *s);
66
<a name="l00100"></a>00100 <span class="keywordtype">void</span> <a class="code" href="group__usb.html#g774d8b902cae279696c53502168ade07" title="Print a string from program space to USB.">usb_puts_P</a> (PGM_P s);
67
<a name="l00102"></a>00102 <span class="keywordtype">int</span> <a class="code" href="group__usb.html#gcd371dedbff10f0c52dca4b3b7af9e3d" title="Print an integer to USB.">usb_puti</a>(<span class="keywordtype">int</span> value);
68
<a name="l00104"></a>00104 uint8_t <a class="code" href="group__usb.html#g94d47853c33da12c71dec155f819cfeb" title="Determine a hexadecimal digit.">hex_digit</a> (uint8_t value);
69
<a name="l00106"></a>00106 <span class="keywordtype">void</span> <a class="code" href="group__usb.html#g8e7e31f1e45721ac032267b13d0f759b" title="Print a fixed width hexadecimal representation to USB.">usb_puth16</a> (uint16_t value);
70
<a name="l00108"></a>00108 <span class="keywordtype">void</span> <a class="code" href="group__usb.html#g21462df541911e0611416e85be6ea34d" title="Print a fixed width hexadecimal representation to USB.">usb_puth8</a>(uint8_t value);
71
<a name="l00110"></a>00110 <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> usb_puth (uint16_t value) { <a class="code" href="group__usb.html#g8e7e31f1e45721ac032267b13d0f759b" title="Print a fixed width hexadecimal representation to USB.">usb_puth16</a> (value); };
72
<a name="l00111"></a>00111 
73
<a name="l00112"></a>00112  <span class="comment">//end addtogroup</span>
74
<a name="l00114"></a>00114 
75
<a name="l00124"></a>00124 <span class="comment">// if no baud rate is defined for usb, default is set here</span>
76
<a name="l00125"></a>00125 
77
<a name="l00126"></a>00126 <span class="comment">// if no baud rate is defined for xbee, default is set here</span>
78
<a name="l00127"></a>00127 <span class="preprocessor">#ifndef XBEE_BAUD</span>
79
<a name="l00128"></a>00128 <span class="preprocessor"></span>
80
<a name="l00129"></a><a class="code" href="group__xbee.html#g7125fc8f3df24a2db8e074983206b054">00129</a> <span class="preprocessor">#define XBEE_BAUD 9600</span>
81
<a name="l00130"></a>00130 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
82
<a name="l00131"></a>00131 <span class="preprocessor"></span>
83
<a name="l00133"></a>00133 <span class="keywordtype">void</span> <a class="code" href="group__xbee.html#g964a1e8461e9c1187e5d69f521e5e107" title="Initialize the XBee.">xbee_init</a>(<span class="keywordtype">void</span>);
84
<a name="l00135"></a>00135 <span class="keywordtype">int</span> <a class="code" href="group__xbee.html#g70c6b231330312d4f69b9a8afb5af989" title="Print a character to the XBee.">xbee_putc</a>(<span class="keywordtype">char</span> c);
85
<a name="l00137"></a>00137 <span class="keywordtype">int</span> <a class="code" href="group__xbee.html#g1f468ae159ba5d97bdfb3f4855d15d88" title="Read a character from the XBee.">xbee_getc</a>(<span class="keywordtype">void</span>);
86
<a name="l00139"></a>00139 <span class="keywordtype">int</span> <a class="code" href="group__xbee.html#gfb7bd5dd535e8251bfff78854c6c15f2" title="Read a character from the XBee without blocking.">xbee_getc_nb</a>(<span class="keywordtype">char</span> *c);
87
<a name="l00140"></a>00140 
88
<a name="l00141"></a>00141 
89
<a name="l00142"></a>00142  <span class="comment">//end addtogroup</span>
90
<a name="l00144"></a>00144 
91
<a name="l00145"></a>00145 <span class="preprocessor">#endif</span>
92
<a name="l00146"></a>00146 <span class="preprocessor"></span>
89 93
</pre></div></div>
90
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Apr 16 18:33:23 2009 for libdragonfly by&nbsp;
94
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Sep 2 23:20:08 2009 for libdragonfly by&nbsp;
91 95
<a href="http://www.doxygen.org/index.html">
92 96
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
93 97
</body>

Also available in: Unified diff