Код: Выделить всё
#include"avr/io.h"
#include"avr/signal.h"
#include"avr/interrupt.h"
int temp;
INTERRUPT(SIG_INTERRUPT0)
{
temp++;
}
INTERRUPT(SIG_OVERFLOW0)
{
temp=0;
}
int main(void)
{
while(1){};
}Вот такую ошибку выдает KontrollersLab
Код: Выделить всё
avr-gcc -mmcu=attiny2313 -O0 -c tax.c -o tax.o
In file included from tax.cc:2:
/user/lib/gcc/avr/4.1.2/../../../../avr/include/avr/signal.h:36:2: warning:#warning "This header file is obsolete. Use <avr>."
tax.c:11:error:redefinition of "INTERRUPT" was here
tax.c:7:error:previous definition of "INTERRUPT" was here
tax.c:18:2:warning: no newline at end of file
Error(s) occurred: The exit status was1.


