Search code examples
cavratmega

AVR ATMEL ATMega168 libraries


I am new to C and the AVR programming world, and therefore I am currently reading this book about the topic.

The author makes reference to ATMEL libraries which deals with memory manipulation, time (sleep) functions and so on. See below an example:

#include <avr/io.h>

My question is, where can I find the documentation for this and other ATMEL libraries? Are they already built-in in the compiler or the development kit? How can I see the corresponding .c file for it?


Solution

  • After installing Atmel Studio you can find the headers here:

    <Program Files>\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include
    

    Documentation is available on the Atmel web-site.