I wrote a simple code in Atmel Studio 6.1 to blink a LED.
#include <avr/io.h>
#include <delay.h>
int main(void)
{
...
return (0);
}
The problem is when I compile the code I get the following error:
delay.h: No such file or directory
I don't think delay.h is not available because it is in this folder:
C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native \3.4.2.1002
\avr8-gnu-toolchain\avr\include\avr\delay.h
What's actually going on?
You can use this to solve your problem.
#include <util/delay.h>