mondo90
Junior Member level 1
Hello, I try to complie (using atmel studio 6 ) example C code for led blinking:
I get atmel studio error: Error 1 'DDB0' undeclared (first use in this function)
It's really frustrating when even example code doesn't work ;/ what's wrong ?
PS: for what this line define: #define F_CPU 1000000UL
Code:
#define F_CPU 1000000UL
#include <avr/io.h>
#include <util/delay.h>
int
main (void)
{
DDRB |= _BV(DDB0);
while(1)
{
PORTB ^= _BV(PB0);
_delay_ms(500);
}
}
I get atmel studio error: Error 1 'DDB0' undeclared (first use in this function)
It's really frustrating when even example code doesn't work ;/ what's wrong ?
PS: for what this line define: #define F_CPU 1000000UL