avr: add copyright notices.

This commit is contained in:
Martin Preuss
2023-04-08 13:05:05 +02:00
parent e673a88cf3
commit 56c11b959e
26 changed files with 292 additions and 21 deletions

View File

@@ -1,3 +1,15 @@
; ***************************************************************************
; 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. *
; ***************************************************************************
; *************************************************************************** ; ***************************************************************************
; Source file for temperature sensor node on AtTiny 84 ; Source file for temperature sensor node on AtTiny 84
; ;

View File

@@ -1,7 +1,12 @@
; *************************************************************************** ; ***************************************************************************
; BMP280 module ; copyright : (C) 2023 by Martin Preuss
; (c) 2023 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. *
; ***************************************************************************
; *************************************************************************** ; ***************************************************************************

View File

@@ -1,3 +1,11 @@
; ***************************************************************************
; 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. *
; ***************************************************************************

View File

@@ -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. *
; ***************************************************************************
; *************************************************************************** ; ***************************************************************************
; code ; code

View File

@@ -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. *
; ***************************************************************************
#define COM_USE_CRC8 1 #define COM_USE_CRC8 1

View File

@@ -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. *
; ***************************************************************************
; *************************************************************************** ; ***************************************************************************
; code ; code

View File

@@ -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. *
; ***************************************************************************
; *************************************************************************** ; ***************************************************************************
; code ; code

View File

@@ -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. *
; ***************************************************************************
; *************************************************************************** ; ***************************************************************************
; code ; code

View File

@@ -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. *
; ***************************************************************************
; *************************************************************************** ; ***************************************************************************
; code ; code

View File

@@ -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. *
; ***************************************************************************

View File

@@ -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. *
; ***************************************************************************
; *************************************************************************** ; ***************************************************************************
; This sub-module contains code for cooperative address management. ; This sub-module contains code for cooperative address management.
; Because the network of nodes doen't have a central control unit the nodes ; Because the network of nodes doen't have a central control unit the nodes

View File

@@ -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. *
; ***************************************************************************
; *************************************************************************** ; ***************************************************************************
; code ; code

View File

@@ -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. *
; ***************************************************************************
; *************************************************************************** ; ***************************************************************************
; code ; code

View File

@@ -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. *
; ***************************************************************************
; *************************************************************************** ; ***************************************************************************
; code ; code

View File

@@ -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. *
; ***************************************************************************
; *************************************************************************** ; ***************************************************************************
; code ; code

View File

@@ -1,3 +1,11 @@
; ***************************************************************************
; 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. *
; ***************************************************************************

View File

@@ -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. *
; ***************************************************************************
; *************************************************************************** ; ***************************************************************************

View File

@@ -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. *
; ***************************************************************************

View File

@@ -1,7 +1,14 @@
; *************************************************************************** ; ***************************************************************************
; LCD module ; copyright : (C) 2023 by Martin Preuss
; (c) 2023 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. *
; ***************************************************************************
; Some code in this module is based on C-code in Tiny4kOLED (https://github.com/datacute/Tiny4kOLED/tree/master/src) ; Some code in this module is based on C-code in Tiny4kOLED (https://github.com/datacute/Tiny4kOLED/tree/master/src)
; by Stephen Denne (MIT license), rewritten in AVR assembler ; by Stephen Denne (MIT license), rewritten in AVR assembler
; ;

View File

@@ -1,3 +1,12 @@
; ***************************************************************************
; 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. *
; ***************************************************************************
.cseg .cseg

View File

@@ -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. *
; ***************************************************************************
.equ RINGBUFFER_OFFS_MAXSIZE = 0 .equ RINGBUFFER_OFFS_MAXSIZE = 0

View File

@@ -1,7 +1,12 @@
; *************************************************************************** ; ***************************************************************************
; SI7021 module ; copyright : (C) 2023 by Martin Preuss
; (c) 2023 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. *
; ***************************************************************************
; *************************************************************************** ; ***************************************************************************

View File

@@ -1,3 +1,15 @@
; ***************************************************************************
; 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. *
; ***************************************************************************
.nolist .nolist
.include "include/tn84def.inc" ; Define device ATtiny84 .include "include/tn84def.inc" ; Define device ATtiny84
.list .list

View File

@@ -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 zl, LOW(timerTable*2)
ldi zh, HIGH(timerTable*2) ldi zh, HIGH(timerTable*2)
ldi xl, LOW(timerModuleDerivedCounters) ; points to first counter: timerModuleCounterFor10s
ldi xh, HIGH(timerModuleDerivedCounters)
timerCallFirstOnEveryHandlers_loop: timerCallFirstOnEveryHandlers_loop:
lpm r17, Z ; overflow value lpm r17, Z ; overflow value
tst r17 ; 0? tst r17 ; 0?
breq timerCallFirstOnEveryHandlers_done ; yes: end of list breq timerCallFirstOnEveryHandlers_done ; yes: end of list
adiw zh:zl, 2 ; skip to handler address adiw zh:zl, 2 ; skip to handler address
lpm r20, Z+ ; read handler address lpm r20, Z+ ; read handler address
lpm r21, Z+ lpm r21, Z+
push r16 ; call handler push r16 ; call handler
push zl push xl
push zh push xh
rcall timerCallR21R20 push zl
pop zh push zh
pop zl ld r16, X+ ; current counter value
pop r16 rcall timerCallR21R20
dec r16 pop zh
pop zl
pop xh
pop xl
pop r16
dec r16
brne timerCallFirstOnEveryHandlers_loop brne timerCallFirstOnEveryHandlers_loop
timerCallFirstOnEveryHandlers_done: timerCallFirstOnEveryHandlers_done:

View File

@@ -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. *
; ***************************************************************************
; *************************************************************************** ; ***************************************************************************
; defines ; defines
@@ -212,7 +223,7 @@ twiReadBit_clockReleased:
; --------------------------------------------------------------------------- ; ---------------------------------------------------------------------------
; twiWriteBit ; twiWriteBit
; ;
; Write a bit from the line (handling SCL and SDA line and possible clock stretching). ; Write a bit to the line (handling SCL and SDA line and possible clock stretching).
; ;
; IN: ; IN:
; - R16: bit to send (either 0x00 or 0x01) ; - R16: bit to send (either 0x00 or 0x01)

View File

@@ -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. *
; ***************************************************************************
; *************************************************************************** ; ***************************************************************************