Download avr-libc Reference Manual
Transcript
1 AVR Libc 1 1 7.11.2 The Source Code . . . . . . . . . . . . . . . . . . . . . . . . 144 7.11.3 Compiling and Linking . . . . . . . . . . . . . . . . . . . . . 146 7.11.4 Examining the Object File . . . . . . . . . . . . . . . . . . . 146 7.11.5 Linker Map Files . . . . . . . . . . . . . . . . . . . . . . . . 150 7.11.6 Intel Hex Files . . . . . . . . . . . . . . . . . . . . . . . . . 152 7.11.7 Make Build the Project . . . . . . . . . . . . . . . . . . . . . 152 7.12 Example using the two-wire interface (TWI) . . . . . . . . . . . . . . 154 7.12.1 Introduction into TWI . . . . . . . . . . . . . . . . . . . . . 154 7.12.2 The TWI example project . . . . . . . . . . . . . . . . . . . 155 7.12.3 The Source Code . . . . . . . . . . . . . . . . . . . . . . . . 155 7.13 Todo List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 7.14 Deprecated List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 AVR Libc The latest version of this document is always available http://savannah.nongnu.org/projects/avr-libc/ from The AVR Libc package provides a subset of the standard C library for Atmel AVR 8-bit RISC microcontrollers. 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://www.avr1.org/mailman/listinfo/avr-gcc-list/. Before posting to the list, you might want to try reading the Frequently Asked Questions chapter of this document. Note: This document is a work in progress. As such, it may contain incorrect information. If you find a mistake, please send an email to [email protected] describing the mistake. Also, send us an email if you find that a specific topic is missing from the document. Generated on Wed Nov 26 21:10:23 2003 for avr-libc by Doxygen