avr: add copyright notices.
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
; ***************************************************************************
|
||||
; copyright : (C) 2023 by Martin Preuss
|
||||
; email : martin@libchipcard.de
|
||||
;
|
||||
; ***************************************************************************
|
||||
; * This file is part of the project "AqHome". *
|
||||
; * Please see toplevel file COPYING of that project for license details. *
|
||||
; ***************************************************************************
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
; ***************************************************************************
|
||||
@@ -213,22 +224,29 @@ timerCallFirstOnEveryHandlers:
|
||||
|
||||
ldi zl, LOW(timerTable*2)
|
||||
ldi zh, HIGH(timerTable*2)
|
||||
ldi xl, LOW(timerModuleDerivedCounters) ; points to first counter: timerModuleCounterFor10s
|
||||
ldi xh, HIGH(timerModuleDerivedCounters)
|
||||
|
||||
timerCallFirstOnEveryHandlers_loop:
|
||||
lpm r17, Z ; overflow value
|
||||
tst r17 ; 0?
|
||||
breq timerCallFirstOnEveryHandlers_done ; yes: end of list
|
||||
adiw zh:zl, 2 ; skip to handler address
|
||||
lpm r20, Z+ ; read handler address
|
||||
lpm r21, Z+
|
||||
push r16 ; call handler
|
||||
push zl
|
||||
push zh
|
||||
rcall timerCallR21R20
|
||||
pop zh
|
||||
pop zl
|
||||
pop r16
|
||||
dec r16
|
||||
lpm r17, Z ; overflow value
|
||||
tst r17 ; 0?
|
||||
breq timerCallFirstOnEveryHandlers_done ; yes: end of list
|
||||
adiw zh:zl, 2 ; skip to handler address
|
||||
lpm r20, Z+ ; read handler address
|
||||
lpm r21, Z+
|
||||
push r16 ; call handler
|
||||
push xl
|
||||
push xh
|
||||
push zl
|
||||
push zh
|
||||
ld r16, X+ ; current counter value
|
||||
rcall timerCallR21R20
|
||||
pop zh
|
||||
pop zl
|
||||
pop xh
|
||||
pop xl
|
||||
pop r16
|
||||
dec r16
|
||||
brne timerCallFirstOnEveryHandlers_loop
|
||||
|
||||
timerCallFirstOnEveryHandlers_done:
|
||||
|
||||
Reference in New Issue
Block a user