Hi,
I ran into this and don't know what is wrong. My ISR is getting an error during build. Here is the relevant code:
#include "stdio.h" #include "stdlib.h" #include "string.h" #include "avr/io.h" #include "avr/interrupt.h" ISR(TIM0_COMPA_vect) { static uint8_t tmrButton; tmrButton++; if(tmrButton>=BUTTONTIMEOUT) { tmrButton=0; SwitchHandler(); } }
I get "Error 2 static declaration of '__vector_9' follows non-static declaration"
Any help would be appreciated.
--TimR