avr: rewrote timer code (split into timer and basetimer).
Only basetimer depends on hardware and clock speed. Works onj AtTiny 84 at 1 MHz and 8 MHz.
This commit is contained in:
@@ -38,9 +38,8 @@ CPRO_WriteSysStats:
|
||||
lds r17, com2Interrupts+1
|
||||
st X+, r17
|
||||
|
||||
lds r17, timerInterrupts
|
||||
st X+, r17 ; timer interrupts
|
||||
lds r17, timerInterrupts+1
|
||||
clr r17
|
||||
st X+, r17 ; timer interrupts (not used anymore)
|
||||
st X+, r17
|
||||
pop xl
|
||||
pop xh
|
||||
|
||||
Reference in New Issue
Block a user