avr: timer table is now consulted every 100ms (instead of every second).

This commit is contained in:
Martin Preuss
2024-09-09 15:49:07 +02:00
parent 1c4d94c5ce
commit a456211438
3 changed files with 23 additions and 65 deletions

View File

@@ -122,6 +122,7 @@ Timer_Run:
Timer_Run_loop: ; for every occurred 100ms irq
push r24
push r25
rcall timerRunTimers
rcall onEvery100ms
pop r25
pop r24
@@ -134,11 +135,11 @@ Timer_Run_loop: ; for every occurred 100ms irq
Timer_Run_SecondElapsed:
clr r16
sts timerModuleTickCounter, r16
push r24
push r25
rcall timerRunTimers
pop r25
pop r24
; push r24
; push r25
; rcall timerRunTimers
; pop r25
; pop r24
Timer_Run_loop_end:
sbiw r25:r24, 1
brne Timer_Run_loop
@@ -185,7 +186,7 @@ Timer_SetValue:
Timer_SetValueTo1s:
push r16
push r17
ldi r16, 1
ldi r16, 10
clr r17
rcall Timer_SetValue
pop r17