I just realized how dumb the mistake was. Below is another error. I know that usually this error happens if I missed a brace or so. But I can’t really find any.
ISR(TIMER1_CAPT_Vect) {
//edge = TCCR1B; manchester
//TCCR1B = edge ^ (1<<ICES1); manchester
TCCR1B ^= 1<<ICES1; (//toggle the
static byte lastEdge; - [b]ERROR HERE ------>exit status 1; expected primary-expression before 'static'[/b]
byte thisedge = OCR1A; //TOP VALUE
//byte difference = lastEdge - thisEdge;
byte capt = thisEdge - lastEdge;
lastEdge = thisEdge; //counter free running
if (difference < ) {}
else TODO
lastEdge = thisEdge;
}
The code is incomplete as it is still in under development.