avr: rename routines to call internal ones instead of directly calling into the main app.
This commit is contained in:
@@ -88,7 +88,7 @@ Clock_Every100ms:
|
|||||||
Clock_Every100ms_inc1s:
|
Clock_Every100ms_inc1s:
|
||||||
clr r16
|
clr r16
|
||||||
sts clockModuleTickCounter, r16
|
sts clockModuleTickCounter, r16
|
||||||
rcall onEverySecond
|
rcall sysOnEverySecond
|
||||||
lds r16, clockModuleCounterSecs
|
lds r16, clockModuleCounterSecs
|
||||||
inc r16
|
inc r16
|
||||||
cpi r16, 60
|
cpi r16, 60
|
||||||
@@ -98,7 +98,7 @@ Clock_Every100ms_inc1s:
|
|||||||
Clock_Every100ms_inc1m:
|
Clock_Every100ms_inc1m:
|
||||||
clr r16
|
clr r16
|
||||||
sts clockModuleCounterSecs, r16
|
sts clockModuleCounterSecs, r16
|
||||||
rcall onEveryMinute
|
rcall sysOnEveryMinute
|
||||||
lds r16, clockModuleCounterMins
|
lds r16, clockModuleCounterMins
|
||||||
inc r16
|
inc r16
|
||||||
cpi r16, 60
|
cpi r16, 60
|
||||||
@@ -108,7 +108,7 @@ Clock_Every100ms_inc1m:
|
|||||||
Clock_Every100ms_inc1h:
|
Clock_Every100ms_inc1h:
|
||||||
clr r16
|
clr r16
|
||||||
sts clockModuleCounterMins, r16
|
sts clockModuleCounterMins, r16
|
||||||
rcall onEveryHour
|
rcall sysOnEveryHour
|
||||||
lds r16, clockModuleCounterHours
|
lds r16, clockModuleCounterHours
|
||||||
inc r16
|
inc r16
|
||||||
cpi r16, 24
|
cpi r16, 24
|
||||||
|
|||||||
Reference in New Issue
Block a user