#include #include #include #include #include "avrIOhelper/io-helper.h" #include "taenzer.h" #include "abzug.h" int32_t spule_trans_pos = 0; uint8_t spule_trans_homed = 0; void timer1_init() { TCCR1A |= (1<= 85000){ ICR1 = ICR5/0.7; OCR1A = ICR1/2; printf("end stop\n"); set_Output(MOTOR_TRANS_DIR, 1); // direction: front } } } ISR(TIMER5_OVF_vect) { static int16_t cnt = 0; cnt++; if(cnt >= 2*4000){ cnt = 0; TCCR1B |= _BV(CS11); //TURN ON TIMSK5 &= ~(1<