MISU.RSG
Member level 1
hi dear
I faced with a problem when I work with timers interrupt sub routine.
I used avrstudio 6.2. I wrote this code.
after compiling I saw this error:
Error 2 redefinition of 'ISR'
what's my fault?
I faced with a problem when I work with timers interrupt sub routine.
I used avrstudio 6.2. I wrote this code.
Code:
// ***************************** Timer 2 compare Subroutine *********************************
// Start of function
void ISR (int TIMER2_COMP_vect){
rsig_on;
OCR2=pulse_value++;
if (pulse_value==256)
{ pulse_value=190;
}
reti();
}
// End of Timer 0 compare Subroutine
// ***************************** Timer 2 overflow Subroutine *********************************
// Start of function
void ISR( TIMER2_OVF_vect){
TCNT2=190;
rsig_off;
lsig_off;
}
// End of overflow Subroutine
after compiling I saw this error:
Error 2 redefinition of 'ISR'
what's my fault?