diverse changes, cleanup
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
#include <avr/io.h>
|
||||
|
||||
template <long int timer_count_till, int timer_prescaler>
|
||||
template <int timer_count_till, int timer_prescaler>
|
||||
class TimerT {
|
||||
// Methods
|
||||
private:
|
||||
@@ -24,8 +24,12 @@ class TimerT {
|
||||
|
||||
TCNT1 = 0;
|
||||
|
||||
OCR1AH = (timer_count_till<<8);
|
||||
OCR1AL = timer_count_till;
|
||||
//OCR1AH = (uint8_t)(timer_count_till<<8);
|
||||
//OCR1AL = (uint8_t)timer_count_till;
|
||||
|
||||
//OCR1A = 39062;
|
||||
|
||||
OCR1A = timer_count_till;
|
||||
|
||||
TIMSK1 = (1<<ICIE1) | (1<<OCIE1A);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user