/* * 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 = (timer_count_till<<8); OCR1AL = timer_count_till; TIMSK1 = (1< Timer; #endif /* TIMER_H_ */