reduce ISR time from 4.5us to 1.6us

This commit is contained in:
2022-05-19 17:33:12 +02:00
parent 53ceb7a0ba
commit 59fa66e164

View File

@@ -91,7 +91,8 @@ void do_spule(){
}
ISR(TIMER1_OVF_vect) {
if(ioHelperReadBit(outStates, MOTOR_TRANS_DIR)){
//if(ioHelperReadBit(outStates, MOTOR_TRANS_DIR)){
if(PORTB & (1<<6)){
spule_trans_pos -= 1;
}
else{