Microcontroller › AVR › 2 parallel time measurements › int time1,
June 29, 2011 at 12:20 pm
#6395
Alex
Participant
int time1, time2;
ISR(TIMER1_COMPA_vect)
{
if(a){
time1++;
}
if(b){
time2++;
}
}
void init()
{
time1=0;
time2=0;
}
???? () {time1;}