/* * Timer.h * * Created: 30.10.2020 19:46:04 * Author: netz */ #ifndef TIMER_H_ #define TIMER_H_ #include template class TimerT { // Methods private: protected: public: TimerT() { TCCR1A = 0; TCCR1B = 0; TCCR1C = 0; TCNT1 = 0; //OCR1AH = (uint8_t)(timer_count_till<<8); //OCR1AL = (uint8_t)timer_count_till; //OCR1A = 39062; OCR1A = timer_count_till; TIMSK1 = (1< Timer; #endif /* TIMER_H_ */