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:
Martin Preuss
2024-09-13 21:39:24 +02:00
parent 6ff68b848c
commit cdcb4e2b3e
5 changed files with 276 additions and 136 deletions

View File

@@ -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