avr: timer table is now consulted every 100ms (instead of every second).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user