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 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384
|
/* Copyright (c) 2002, Theodore Roth
Copyright (c) 2004,2005,2006,2007 Joerg Wunsch
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
* Neither the name of the copyright holders nor the names of
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE. */
/* $Id: main_page.dox,v 1.50.2.24 2009/12/03 18:38:59 arcanum Exp $ */
/** \mainpage AVR Libc
\section avr_libc_intro Introduction
The latest version of this document is always available from
http://savannah.nongnu.org/projects/avr-libc/
The AVR Libc package provides a subset of the standard C library for
<a href="http://www.atmel.com/products/AVR/">Atmel AVR
8-bit RISC microcontrollers</a>. In addition, the library provides the basic
startup code needed by most applications.
There is a wealth of information in this document which goes beyond simply
describing the interfaces and routines provided by the library. We hope that
this document provides enough information to get a new AVR developer up to
speed quickly using the freely available development tools: binutils, gcc
avr-libc and many others.
If you find yourself stuck on a problem which this document doesn't quite
address, you may wish to post a message to the avr-gcc mailing list. Most of
the developers of the AVR binutils and gcc ports in addition to the devleopers
of avr-libc subscribe to the list, so you will usually be able to get your
problem resolved. You can subscribe to the list at
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list . Before posting to the
list, you might want to try reading the \ref FAQ chapter of this document.
\note If you think you've found a bug, or have a suggestion for an
improvement, either in this documentation or in the library itself,
please use the bug tracker at
https://savannah.nongnu.org/bugs/?group=avr-libc to ensure the issue
won't be forgotten.
\section avr_libc_general General information about this library
In general, it has been the goal to stick as best as possible to
established standards while implementing this library. Commonly, this
refers to the C library as described by the ANSI X3.159-1989 and
ISO/IEC 9899:1990 ("ANSI-C") standard, as well as parts of their
successor ISO/IEC 9899:1999 ("C99"). Some additions have been
inspired by other standards like IEEE Std 1003.1-1988 ("POSIX.1"),
while other extensions are purely AVR-specific (like the entire
program-space string interface).
Unless otherwise noted, functions of this library are <em>not</em>
guaranteed to be reentrant. In particular, any functions that store
local state are known to be non-reentrant, as well as functions that
manipulate IO registers like the EEPROM access routines. If these
functions are used within both standard and interrupt contexts
undefined behaviour will result.
See the FAQ for a more detailed discussion.
\section supp_devices Supported Devices
\addindex supported devices
The following is a list of AVR devices currently supported by the library.
Note that actual support for some newer devices depends on the ability
of the compiler/assembler to support these devices at library
compile-time.
\par megaAVR Devices:
- atmega103
- atmega128
- atmega1280
- atmega1281
- atmega1284p
- atmega16
- atmega161
- atmega162
- atmega163
- atmega164a
- atmega164p
- atmega165
- atmega165a
- atmega165p
- atmega168
- atmega168a
- atmega168p
- atmega16a
- atmega2560
- atmega2561
- atmega32
- atmega323
- atmega324a
- atmega324p
- atmega324pa
- atmega325
- atmega325p
- atmega3250
- atmega3250p
- atmega328
- atmega328p
- atmega48
- atmega48a
- atmega48p
- atmega64
- atmega640
- atmega644
- atmega644a
- atmega644p
- atmega644pa
- atmega645
- atmega645a
- atmega645p
- atmega6450
- atmega6450a
- atmega6450p
- atmega8
- atmega88
- atmega88a
- atmega88p
- atmega88pa
- atmega8515
- atmega8535
\par tinyAVR Devices:
- attiny11 \ref supp_dev_footnote_one "[1]"
- attiny12 \ref supp_dev_footnote_one "[1]"
- attiny13
- attiny13a
- attiny15 \ref supp_dev_footnote_one "[1]"
- attiny22
- attiny24
- attiny24a
- attiny25
- attiny26
- attiny261
- attiny261a
- attiny28 \ref supp_dev_footnote_one "[1]"
- attiny2313
- attiny2313a
- attiny4313
- attiny43u
- attiny44
- attiny44a
- attiny45
- attiny461
- attiny461a
- attiny48
- attiny84
- attiny85
- attiny861
- attiny861a
- attiny87
- attiny88
\par Automotive AVR Devices:
- atmega16m1
- atmega32c1
- atmega32m1
- atmega64c1
- atmega64m1
- attiny167
\par CAN AVR Devices:
- at90can32
- at90can64
- at90can128
\par LCD AVR Devices:
- atmega169
- atmega169a
- atmega169p
- atmega169pa
- atmega329
- atmega329p
- atmega329pa
- atmega3290
- atmega3290p
- atmega649
- atmega649a
- atmega6490
- atmega6490a
- atmega6490p
- atmega649p
\par Lighting AVR Devices:
- at90pwm1
- at90pwm2
- at90pwm2b
- at90pwm216
- at90pwm3
- at90pwm3b
- at90pwm316
- at90pwm81
\par Smart Battery AVR Devices:
- atmega8hva
- atmega16hva
- atmega16hva2
- atmega16hvb
- atmega32hvb
- atmega64hve
- atmega406
\par USB AVR Devices:
- at90usb82
- at90usb162
- at90usb646
- at90usb647
- at90usb1286
- at90usb1287
- atmega8u2
- atmega16u2
- atmega16u4
- atmega32u2
- atmega32u4
- atmega32u6
\par XMEGA Devices:
- atxmega16a4
- atxmega16d4
- atxmega32a4
- atxmega32d4
- atxmega64a1
- atxmega64a3
- atxmega64d3
- atxmega128a1
- atxmega128a3
- atxmega128d3
- atxmega192a3
- atxmega192d3
- atxmega256a3
- atxmega256a3b
- atxmega256d3
\par Miscellaneous Devices:
- at94K \ref supp_dev_footnote_two "[2]"
- at76c711 \ref supp_dev_footnote_three "[3]"
- at43usb320
- at43usb355
- at86rf401
- at90scr100
- ata6289
\par Classic AVR Devices:
- at90s1200 \ref supp_dev_footnote_one "[1]"
- at90s2313
- at90s2323
- at90s2333
- at90s2343
- at90s4414
- at90s4433
- at90s4434
- at90s8515
- at90c8534
- at90s8535
\anchor supp_dev_footnote_one
\note <b>[1]</b> Assembly only. There is no direct support for these devices to be
programmed in C since they do not have a RAM based stack. Still, it could be
possible to program them in C, see the \ref faq_tinyavr_c "FAQ" for an option.
\anchor supp_dev_footnote_two
\note <b>[2]</b> The at94K devices are a combination of FPGA and AVR
microcontroller. [TRoth-2002/11/12: Not sure of the level of support for
these. More information would be welcomed.]
\anchor supp_dev_footnote_three
\note <b>[3]</b> The at76c711 is a USB to fast serial interface bridge chip
using an AVR core.
\section license avr-libc License
avr-libc can be freely used and redistributed, provided the following
license conditions are met.
\verbatim
Portions of avr-libc are Copyright (c) 1999-2008
Werner Boellmann,
Dean Camera,
Pieter Conradie,
Brian Dean,
Keith Gudger,
Wouter van Gulik,
Bjoern Haase,
Steinar Haugen,
Peter Jansen,
Reinhard Jessich,
Magnus Johansson,
Harald Kipp,
Carlos Lamas,
Cliff Lawson,
Artur Lipowski,
Marek Michalkiewicz,
Todd C. Miller,
Rich Neswold,
Colin O'Flynn,
Bob Paddock,
Andrey Pashchenko,
Reiner Patommel,
Florin-Viorel Petrov,
Alexander Popov,
Michael Rickman,
Theodore A. Roth,
Juergen Schilling,
Philip Soeberg,
Anatoly Sokolov,
Nils Kristian Strom,
Michael Stumpf,
Stefan Swanepoel,
Helmut Wallner,
Eric B. Weddington,
Joerg Wunsch,
Dmitry Xmelkov,
Atmel Corporation,
egnite Software GmbH,
The Regents of the University of California.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
* Neither the name of the copyright holders nor the names of
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
\endverbatim
*/
|