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.

C LIBRARY AND STARTUP FILEOverriding a Library FunctionYou can write your own version of a library function. For example, you can implementyour own putchar() function to do interrupt driven IO (an example of this isavailable in <strong>the</strong> c:\iccv8<strong>avr</strong>\examples.<strong>avr</strong> directory) or write to an LCD device.The library source code is provided so that you can use it as a starting point. You canoverride <strong>the</strong> default library function using one of <strong>the</strong> following methods:You can include your function in one of your project files. The <strong>compiler</strong> system willnot use <strong>the</strong> library function in this case. Note that in this case, unlike a librarymodule, your function will always be included in <strong>the</strong> final program output even ifyou do not use it.You may create your own library. See Librarian <strong>for</strong> details.You may replace <strong>the</strong> default library version with your own. Note that when youupgrade to a new version of <strong>the</strong> product, you will need to make this replacementagain. See Librarian <strong>for</strong> details on how to replace a library module.

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

Saved successfully!

Ooh no, something went wrong!