9 class Timer8
: public Hardware
{
11 Timer8(Bus
& bus
, unsigned char tovmask
, unsigned char ocfmask
);
14 bool attachReg(const char *name
, IORegister
*reg
);
15 void regChanged( IORegister
*reg
);
19 void setClock(unsigned char tccr
);
20 void forceOutputCompare();
21 void compareMatchOutput(unsigned char tcnt
);
24 unsigned char tovmask
;
25 unsigned char ocfmask
;
28 /* pg. 93 of manual. Block compareMatch for one period after
29 * TCNTn is written to. */
30 bool blockCompareMatch
;
32 // For double buffering ocr register
35 unsigned char timerMode
;
36 unsigned char compareMode
;
46 inline Timer8::Timer8(Bus
& bus
, unsigned char tovmask
, unsigned char ocfmask
)
47 : Hardware(bus
), tovmask(tovmask
), ocfmask(ocfmask
), direction(1) {
48 blockCompareMatch
= false;
56 #endif /*AVR_TIMER8_H*/