Migrated a project that compiled successfully under AS4 to AS6. I get the following error:
"Error 1 attempt to use poisoned SIG_INTERRUPT1"
I have researched the board for similar errors and have found they are related to a)improper MCU selection or b)not including
/* * garage_light.c * * Created: 1/8/2013 7:11:21 PM * Author: Mark */ #include#include int triac_delay = 8200; SIGNAL (SIG_INTERRUPT1) { cli(); //turn off interrupts OCR1A = triac_delay; //set output compare A to triac delay OCR1B = triac_delay + 8333; //set output compare B to triac delay + 8.3 ms TCNT1 = 0x00; //start timer 1 at zero sei(); } int main(void) { while(1) { //TODO:: Please write your application code } }