ATtiny devices use a single TIFR that is shared among both timers. Same goes for TIMSK. Thus, the bit indices for these registers are different and are timer dependent. For instance, TOV0 is second least significant bit, while its current value is hardcoded to the least significant bit.
We need to make TOV / OCFA / OCFB bit positions configurable, as well as TOIE, OCIEA and OCIEB.
ATtiny devices use a single
TIFR
that is shared among both timers. Same goes forTIMSK
. Thus, the bit indices for these registers are different and are timer dependent. For instance,TOV0
is second least significant bit, while its current value is hardcoded to the least significant bit.We need to make
TOV
/OCFA
/OCFB
bit positions configurable, as well asTOIE
,OCIEA
andOCIEB
.