11.07.2015 Views

Imagecraft c compiler and development environment for the atmel avr

Imagecraft c compiler and development environment for the atmel avr

Imagecraft c compiler and development environment for the atmel avr

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ICCV8 <strong>for</strong> AVR – C Compiler <strong>for</strong> Atmel AVRC Preprocessor Dialects ...................................................................... 65Predefined Macros .............................................................................. 66Supported Directives........................................................................... 68String Literals <strong>and</strong> Token Pasting....................................................... 70C IN 16 PAGES...............................................................................................71Preamble ............................................................................................. 71Declaration.......................................................................................... 74Expressions <strong>and</strong> Type Promotions...................................................... 77Statements........................................................................................... 82C LIBRARY AND STARTUP FILE ..............................................................85Overriding a Library Function............................................................ 85Startup File.......................................................................................... 86C Library General Description ........................................................... 89Character Type Functions................................................................... 91Floating-Point Math Functions ........................................................... 93St<strong>and</strong>ard IO Functions ........................................................................ 95St<strong>and</strong>ard Library And Memory Allocation Functions........................ 99String Functions................................................................................ 102Variable Argument Functions........................................................... 105Stack Checking Functions ................................................................ 106Greater Than 64K Access Functions ................................................ 108PROGRAMMING THE AVR.......................................................................111Accessing AVR Features .................................................................. 111io???v.h Header Files........................................................................ 112Generating Production ELF File....................................................... 114CRC Generation................................................................................ 116Program Data <strong>and</strong> Constant Memory ............................................... 117Strings ............................................................................................... 118Stacks ................................................................................................ 119Inline Assembly ................................................................................ 120IO Registers ...................................................................................... 121XMega IO Registers ......................................................................... 122Global Registers................................................................................ 123Addressing Absolute Memory Locations ......................................... 125Accessing Memory Outside of <strong>the</strong> 64K Range ................................ 127C Tasks ............................................................................................. 1312

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!