-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome_page.html
287 lines (214 loc) · 8.92 KB
/
home_page.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<!DOCTYPE html>
<html lang="en">
<head>
<title>Cduino -- Arduino Programming with C and Make</title>
<meta name="keywords" content="cduino, arduino, programming, C programming,
make, vi, avrdude, atmel, microcontroller" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
<table style="text-align: left; width: 100%;" border="0" cellpadding="2"
cellspacing="10">
<tbody>
<tr>
<td style="text-align: center; vertical-align: middle; width: 15%;">
<br />
</td>
<td style="text-align: center; vertical-align: middle;">
<h1>Cduino: Arduino Programming with C and Make</h1>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 15%;
background-color: rgb(255, 255, 160);">
<h3><a href="why_cduino.html">Why Cduino?</a></h3>
<h3><a href="annotated_schematics.html">Annotated Schematics</a></h3>
<h3><a href="http://www.wayneandlayne.com/blog/2010/12/19/nice-drawings-of-the-arduino-uno-and-mega-2560/">Mechanical Drawing</a></h3>
<h3><a href="releases/">Download</a></h3>
<h3><a href="manual.html">Manual</a></h3>
<h3><a href="apis_and_sources.html">API and Sources</a></h3>
<h3><a href="lessons.html">Lessons</a></h3>
<h3><a href="mailing_list.html">Mailing List</a></h3>
<h3><a href="contributing.html">Contributing</a></h3>
</td>
<td style="vertical-align: top;">
<h2>Quick Start</h2>
First, <a href="prerequisites.html">set up the prerequisite hardward
and software</a>. Then unpack the distribution and try the following
from the top level directory:
<p />
<blockquote>
<code>
make -rR -C blink writeflash
</code>
</blockquote>
<p />
If the make command fails, be sure to read the hints just above the
failure message...
<p />
Now your arduino's LED should be blinking.
<p />
Talking to the arduino over the serial port takes only two function
calls from the <a href="xlinked_source_html/term_io.h.html">
term_io module</a>:
<p />
<blockquote>
<code>
make -rR -C term_io writeflash<br />
# Wait a few seconds for the AVR to finish rebooting... <br />
make -rR -C term_io run_screen<br />
# Maybe hit return a few times
</code>
</blockquote>
<p />
<h2>News</h2>
<ul>
<li> New software implementation of Maxsim one-wire slave protocol:
<a
href="xlinked_source_html/one_wire_slave.h.html">one_wire_slave.h
</a>. Actually Maxim doesn't publish this, so I reverse-engineer :)
Now you can make your own slaves using Arduinos (or naked ATMega
chips clocked at 10 MHz or more).
</li>
<li> Support for using multiple AVRISPmkII programmers
simultaneously. See the definition of AVRISPMKII_PORT in generic.mk
in the top-level project directory.</li>
<li>
New modules for using timer1 as a simple stopwatch. Timer1 is a 16
bit timer, so there is no need to use interrupts in any way to
measure shortish chunks of time.
<a href="xlinked_source_html/timer1_stopwatch.h.html">
xlinked_source_html/timer1_stopwatch.h
</a>
</li>
<li> New software implementation of Maxsim one-wire master protocol:
<a
href="xlinked_source_html/one_wire_master.h.html">one_wire_master.h
</a>.
</li>
<li> New build system support for creating a random 64 bit device ID
and loading it into the AVR EEPROM. See the new_random_id target
in generic.mk in the top-level project directory and the <a
href="xlinked_source_html/random_id_test.c.html">random_id_test.c
</a>.
test program.
</li>
<li> Numerous improvements and fixes to <a
href="xlinked_source_html/wireless_xbee.h.html"> wireless_xbee.h
</a>, including SLEEP_RQ and RESET support.
</li>
<li> New module for ST Microelectronics LIS331HH accelerometer (and
sibling devices): <a
href="xlinked_source_html/accelerometer.h.html">accelerometer.h</a>.
</li>
<li>
New module for Maxstream XBee Series 1 wireless modules:
<a href="xlinked_source_html/wireless_xbee.h.html">
wireless_xbee.h
</a>.
</li>
<li>
New module for DC motor control use the Arduino Motor Shield:
<a href="xlinked_source_html/dc_motor.h.html">dc_motor.h</a>.
</li>
<li>
New module for SD card control via SPI:
<a href="xlinked_source_html/sd_card.h.html">sd_card.h</a>.
</li>
<li>
New module for SPI bus (hardware master-mode only):
<a href="xlinked_source_html/spi.h.html">spi.h</a>.
</li>
<li>
New tupple macros for cleaner encapsulation of IO pin choices in
<a href="xlinked_source_html/dio.h.html">dio.h</a>.
</li>
<li>
New module for using Timer/Counter0 hardware as an interrupt-driven
stopwatch: <a href="xlinked_source_html/timer0_stopwatch.h.html">
timer0_stopwatch.h</a>.
</li>
<li>
Fixed port device and baud rate autodetction to work with linux
kernel 2.6 behavior. Unfortunately this means that autodetection
doesn't work with earlier kernels anymore. But it's easy to set
the values directly if necessary.
</li>
<li>
Works with Aruino Uno now, hopefully. We try to magically guesses
avrdude port and baud rate requirements for Uno vs. Duemilanove
Arduinos now (so should work with both).
</li>
<li>
New module for the DFRobot DFR0009 LCD and Keypad shield:
<code>
<a href="xlinked_source_html/lcd_keypad.h.html">lcd_keypad.h</a>
</code>.
</li>
<li>Browsable
<a href="apis_and_sources.html">API and source documentation</a>.
</li>
<li>
New module for HD44780 compatible LCDs:
<code>
<a href="xlinked_source_html/lcd.h.html">lcd.h</a>
</code>.
</li>
<li>
New module for simplified digital IO pin initialization and
control:
<code>
<a href="xlinked_source_html/dio.h.html">dio.h</a>
</code>.
</li>
<li>
Support for building C++ sources. This project is still all in C,
but if anyone wants to use it with C++ it should be easier. This
also make it a lot easier to borrow code from the Arduino libraries
:)
</li>
</ul>
<h2 id="abstract">Abstract</h2>
<p />
This package contains:
<ul>
<li> a Makefile setup for programming an arduino (or other
Atmel ATMega chip) using unix command line tools
<li> a library of simple modules to do various interesting things
with an ATMega (blink a LED, talk over a serial line, drive simple
LCD display, etc.)
</ul>
In other words, it's a lots like the excellent <a
href="http://www.arduino.cc/">arduino</a> project and uses the same
open hardware, but avoids the new wiring language, the C++ intermediate
layer, and the Java-based IDE. Crusy old (and young) Unix/C
programmers rejoice!
<h2>Features</h2>
<p />
<a name="feature_list">
<ul>
<li>Supports programming using the arduino bootloader or in-system
programming using AVRISPmkII programmer</li>
<li>Modules are designed to look as independent as possible: doing
<code>cp --recursive --dereference some_module ~/new_project</code>
yields a minimal stand-alone project.</li>
<li>Leverages all the convenient power options (USB or external)
and communication circuitry (Serial to USB) of the arduino hardware
platform, but provides a convenient migration path to programming
for simpler hardware.</li>
<li>Tries to be pedantic with info and error messages so new
arduino users can learn its tricks easily.</li>
</ul>
</a>
<h2>Bugs and Feature Requests</h2>
Please send these to <a
href="mailing_list.html">the mailing list</a>.
<p />
Good luck!<br />
<hr style="width: 100%; height: 2px;">
</td>
</tr>
</tbody>
</table>
</body>
</html>