Timer: Add callback "onEvery30s".

This commit is contained in:
Martin Preuss
2023-02-02 00:42:28 +01:00
parent 6a0ebe6eb8
commit ee73dd8fe8

View File

@@ -132,11 +132,20 @@ Timer_Run_check1m:
lds r16, timerModuleCounter1m
inc r16
sts timerModuleCounter1m, r16
cpi r16, 30 ; check for every 30s
brne Timer_Run_l4
push r16
push r17
rcall onEvery30s
pop r17
pop r16
Timer_Run_l4:
cpi r16, 60
brcs Timer_Run_l2
clr r16
sts timerModuleCounter1m, r16
push r17
rcall onEvery30s
rcall onEveryMinute
pop r17