This is my code
#ifndef F_CPU
#define F_CPU 16000000UL
#endif
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
DDRA = 0xFF;
//while(1)
//{
//PORTA = 0xFF;
//_delay_ms(1000);
//PORTA= 0x00;
//_delay_ms(1000);
//}
}
When I use 2313 It is working but when I change to Attiny816 I get this error like this
recipe for target 'main.o' failed
'DDRA' undeclared (first use in this function)
each undeclared identifier is reported only once for each function it appears in GccApplication1
Please help whats wrong.
Thanks.
I am new to this.