Gast
#309402
was mache ich falsch? möchte das bei 0-signal der interrup ausgelösst
wird. Programm code in C:
#include <inttypes.h>
#include <avr/io.h>
#include <avr/signal.h>
void sysinit(void){
SREG=SREG|0x80;
EIMSK=0x03;
EICRA=0x0C;
DDRG=0XF0;
DDRF=0xFF;
}
int main (void){
sysinit();
while(1){
SIGNAL(__SIG_INTERRUPT0){
PORTF=0x80;
}
}
return (0);
}
Warnings:
usbtest.c:18: warning: `__SIG_INTERRUPT0' appears to be a misspelled
signal handler
usbtest.c:18: warning: static declaration of '__SIG_INTERRUPT0'
follows non-static declaration
usbtest.c:18: warning: previous declaration of '__SIG_INTERRUPT0' was
here