summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--COPYING2
-rw-r--r--LICENSES/BSD-2-Clause.txt22
-rw-r--r--LICENSES/BSD-3-Clause.txt26
-rw-r--r--LICENSES/CC0-1.0.txt121
-rw-r--r--LICENSES/GPL-2.0-only.txt311
-rw-r--r--LICENSES/LGPL-3.0-or-later.txt144
-rw-r--r--LICENSES/MIT.txt20
-rw-r--r--Makefile4
-rw-r--r--include/arch.h5
-rw-r--r--include/arch/arduino-nano/arch_types.h5
-rw-r--r--include/arch/arduino-nano/driver/adc.h5
-rw-r--r--include/arch/arduino-nano/driver/counter.h5
-rw-r--r--include/arch/arduino-nano/driver/gpio.h5
-rw-r--r--include/arch/arduino-nano/driver/i2c.h5
-rw-r--r--include/arch/arduino-nano/driver/neopixel.h5
-rw-r--r--include/arch/arduino-nano/driver/spi.h5
-rw-r--r--include/arch/arduino-nano/driver/stdin.h5
-rw-r--r--include/arch/arduino-nano/driver/stdout.h5
-rw-r--r--include/arch/arduino-nano/driver/timer.h5
-rw-r--r--include/arch/arduino-nano/driver/uptime.h5
-rw-r--r--include/arch/blinkenrocket/driver/gpio.h5
-rw-r--r--include/arch/blinkenrocket/driver/i2c.h5
-rw-r--r--include/arch/blinkenrocket/driver/stdout.h5
-rw-r--r--include/arch/blinkenrocket/driver/uptime.h5
-rw-r--r--include/arch/esp8266/driver/counter.h5
-rw-r--r--include/arch/esp8266/driver/gpio.h5
-rw-r--r--include/arch/esp8266/driver/stdin.h5
-rw-r--r--include/arch/esp8266/driver/stdout.h12
-rw-r--r--include/arch/esp8266/driver/uptime.h5
-rw-r--r--include/arch/esp8266/user_config.h5
-rw-r--r--include/arch/msp430fr5969lp/driver/adc.h5
-rw-r--r--include/arch/msp430fr5969lp/driver/counter.h5
-rw-r--r--include/arch/msp430fr5969lp/driver/gpio.h5
-rw-r--r--include/arch/msp430fr5969lp/driver/i2c.h5
-rw-r--r--include/arch/msp430fr5969lp/driver/spi.h5
-rw-r--r--include/arch/msp430fr5969lp/driver/stdin.h5
-rw-r--r--include/arch/msp430fr5969lp/driver/stdout.h5
-rw-r--r--include/arch/msp430fr5969lp/driver/timer.h5
-rw-r--r--include/arch/msp430fr5969lp/driver/uptime.h5
-rw-r--r--include/arch/msp430fr5994lp/driver/adc.h5
-rw-r--r--include/arch/msp430fr5994lp/driver/counter.h5
-rw-r--r--include/arch/msp430fr5994lp/driver/gpio.h5
-rw-r--r--include/arch/msp430fr5994lp/driver/i2c.h5
-rw-r--r--include/arch/msp430fr5994lp/driver/spi.h5
-rw-r--r--include/arch/msp430fr5994lp/driver/spi_a1.h5
-rw-r--r--include/arch/msp430fr5994lp/driver/stdin.h5
-rw-r--r--include/arch/msp430fr5994lp/driver/stdout.h5
-rw-r--r--include/arch/msp430fr5994lp/driver/timed_resistive_load.h5
-rw-r--r--include/arch/msp430fr5994lp/driver/timer.h5
-rw-r--r--include/arch/msp430fr5994lp/driver/uptime.h5
-rw-r--r--include/arch/msp430fr5994lp/int20.h5
-rw-r--r--include/arch/posix/driver/counter.h5
-rw-r--r--include/arch/posix/driver/gpio.h5
-rw-r--r--include/arch/posix/driver/stdout.h5
-rw-r--r--include/arch/posix/driver/uptime.h5
-rw-r--r--include/arch/stm32f446re-nucleo/driver/counter.h5
-rw-r--r--include/arch/stm32f446re-nucleo/driver/gpio.h5
-rw-r--r--include/arch/stm32f446re-nucleo/driver/stdout.h5
-rw-r--r--include/arch/stm32f446re-nucleo/driver/uptime.h5
-rw-r--r--include/driver/aemr_transition_sync.h5
-rw-r--r--include/driver/am2320.h5
-rw-r--r--include/driver/bme280.h2
-rw-r--r--include/driver/bme280_defs.h2
-rw-r--r--include/driver/bme680.h2
-rw-r--r--include/driver/bme680_defs.h2
-rw-r--r--include/driver/bme680_util.h5
-rw-r--r--include/driver/ccs811.h5
-rw-r--r--include/driver/eeprom24lc64.h5
-rw-r--r--include/driver/hdc1080.h5
-rw-r--r--include/driver/lm75.h5
-rw-r--r--include/driver/max44009.h5
-rw-r--r--include/driver/mmsimple.h5
-rw-r--r--include/driver/mmsubstate.h5
-rw-r--r--include/driver/mpu9250.h2
-rw-r--r--include/driver/nrf24l01.h8
-rw-r--r--include/driver/nrf24l01/registers.h4
-rw-r--r--include/driver/resistive_load.h5
-rw-r--r--include/driver/s5851a.h5
-rw-r--r--include/driver/sharp96.h5
-rw-r--r--include/driver/soft_i2c.h5
-rw-r--r--include/object/outputstream.h12
-rw-r--r--include/object/ptalog.h5
-rw-r--r--include/object/stdbuf.h5
-rw-r--r--include/object/xdr16input.h5
-rw-r--r--include/object/xdr16stream.h9
-rw-r--r--include/object/xdrinput.h5
-rw-r--r--include/object/xdrstream.h9
-rwxr-xr-xmake-elf4
-rwxr-xr-xmp4
-rwxr-xr-xmpm4
-rwxr-xr-xscript/g++wrap5
-rwxr-xr-xscript/mkconfig4
-rwxr-xr-xscript/randconfig4
-rwxr-xr-xscript/size.py4
-rwxr-xr-xscript/static-stack-analyze.pl42
-rw-r--r--src/app/aemr/Makefile.inc6
-rw-r--r--src/app/blinkencat3/Kconfig4
-rw-r--r--src/app/blinkencat3/Makefile.inc6
-rw-r--r--src/app/blinkencat3/main.cc5
-rw-r--r--src/app/button-and-motion-logger/Kconfig4
-rw-r--r--src/app/button-and-motion-logger/Makefile.inc6
-rwxr-xr-xsrc/app/button-and-motion-logger/client.py4
-rw-r--r--src/app/button-and-motion-logger/main.cc5
-rw-r--r--src/app/ccs811test/Makefile.inc6
-rw-r--r--src/app/ccs811test/main.cc5
-rw-r--r--src/app/countertest/Kconfig4
-rw-r--r--src/app/countertest/Makefile.inc6
-rw-r--r--src/app/countertest/main.cc5
-rw-r--r--src/app/donothing/Kconfig4
-rw-r--r--src/app/donothing/Makefile.inc6
-rw-r--r--src/app/donothing/main.cc5
-rw-r--r--src/app/energybench/Kconfig4
-rw-r--r--src/app/energybench/Makefile.inc7
-rw-r--r--src/app/energybench/main.cc5
-rw-r--r--src/app/i2cbench/Makefile.inc6
-rw-r--r--src/app/i2cbench/main.cc5
-rw-r--r--src/app/i2cdetect/Kconfig4
-rw-r--r--src/app/i2cdetect/Makefile.inc6
-rw-r--r--src/app/i2cdetect/main.cc5
-rw-r--r--src/app/ledblink/Kconfig4
-rw-r--r--src/app/ledblink/Makefile.inc6
-rw-r--r--src/app/ledblink/main.cc5
-rw-r--r--src/app/loratest/Kconfig4
-rw-r--r--src/app/loratest/Makefile.inc6
-rw-r--r--src/app/loratest/main.cc5
-rw-r--r--src/app/luxlog/Kconfig4
-rw-r--r--src/app/luxlog/Makefile.inc6
-rw-r--r--src/app/luxlog/main.cc5
-rw-r--r--src/app/mpu9250_motionlog/Kconfig4
-rw-r--r--src/app/mpu9250_motionlog/Makefile.inc6
-rw-r--r--src/app/mpu9250_motionlog/main.cc5
-rw-r--r--src/app/nrf24l01test/Makefile.inc6
-rw-r--r--src/app/nrf24l01test/main.cc5
-rw-r--r--src/app/sharp96test/Kconfig4
-rw-r--r--src/app/sharp96test/Makefile.inc6
-rw-r--r--src/app/sharp96test/main.cc5
-rw-r--r--src/app/shell/Kconfig4
-rw-r--r--src/app/shell/Makefile.inc6
-rw-r--r--src/app/shell/main.cc5
-rw-r--r--src/app/sysinfo/Makefile.inc6
-rw-r--r--src/app/sysinfo/main.cc5
-rw-r--r--src/app/test_basic/Makefile.inc7
-rw-r--r--src/app/test_basic/main.cc5
-rw-r--r--src/app/timertest/Makefile.inc6
-rw-r--r--src/app/timertest/main.cc5
-rw-r--r--src/app/transactiontest/Kconfig4
-rw-r--r--src/app/transactiontest/Makefile.inc6
-rw-r--r--src/app/transactiontest/main.cc5
-rw-r--r--src/app/transactiontest/util.S6
-rw-r--r--src/app/waittest/Makefile.inc6
-rw-r--r--src/app/waittest/main.cc5
-rw-r--r--src/app/wetterstation/Kconfig4
-rw-r--r--src/app/wetterstation/Makefile.inc6
-rwxr-xr-xsrc/app/wetterstation/client.py4
-rw-r--r--src/app/wetterstation/main.cc5
-rw-r--r--src/app/ws2812b_dmap/Kconfig4
-rw-r--r--src/app/ws2812b_dmap/Makefile.inc6
-rw-r--r--src/app/ws2812b_dmap/main.cc5
-rw-r--r--src/app/ws2812b_uart/Kconfig4
-rw-r--r--src/app/ws2812b_uart/Makefile.inc6
-rw-r--r--src/app/ws2812b_uart/main.cc5
-rw-r--r--src/arch/arduino-nano/Kconfig3
-rw-r--r--src/arch/arduino-nano/Makefile.inc4
-rw-r--r--src/arch/arduino-nano/arch.cc5
-rw-r--r--src/arch/arduino-nano/driver/adc.cc5
-rw-r--r--src/arch/arduino-nano/driver/counter.cc5
-rw-r--r--src/arch/arduino-nano/driver/gpio.cc5
-rw-r--r--src/arch/arduino-nano/driver/i2c.cc5
-rw-r--r--src/arch/arduino-nano/driver/neopixel.cc5
-rw-r--r--src/arch/arduino-nano/driver/spi.cc5
-rw-r--r--src/arch/arduino-nano/driver/stdin.cc5
-rw-r--r--src/arch/arduino-nano/driver/stdout.cc5
-rw-r--r--src/arch/arduino-nano/driver/timer.cc5
-rw-r--r--src/arch/arduino-nano/driver/uptime.cc5
-rw-r--r--src/arch/blinkenrocket/Kconfig3
-rw-r--r--src/arch/blinkenrocket/Makefile.inc4
-rw-r--r--src/arch/blinkenrocket/arch.cc5
-rw-r--r--src/arch/blinkenrocket/driver/gpio.cc5
-rw-r--r--src/arch/blinkenrocket/driver/i2c.cc5
-rw-r--r--src/arch/blinkenrocket/driver/stdout.cc5
-rw-r--r--src/arch/blinkenrocket/driver/uptime.cc5
-rw-r--r--src/arch/esp8266/Kconfig3
-rw-r--r--src/arch/esp8266/Makefile.inc4
-rw-r--r--src/arch/esp8266/arch.cc5
-rw-r--r--src/arch/esp8266/driver/counter.cc5
-rw-r--r--src/arch/esp8266/driver/gpio.cc5
-rw-r--r--src/arch/esp8266/driver/stdin.cc5
-rw-r--r--src/arch/esp8266/driver/stdout.cc12
-rw-r--r--src/arch/esp8266/driver/uptime.cc5
-rw-r--r--src/arch/msp430fr5969lp/Kconfig3
-rw-r--r--src/arch/msp430fr5969lp/Makefile.inc4
-rw-r--r--src/arch/msp430fr5969lp/arch.cc5
-rw-r--r--src/arch/msp430fr5969lp/driver/adc.cc5
-rw-r--r--src/arch/msp430fr5969lp/driver/counter.cc5
-rw-r--r--src/arch/msp430fr5969lp/driver/gpio.cc5
-rw-r--r--src/arch/msp430fr5969lp/driver/i2c.cc5
-rw-r--r--src/arch/msp430fr5969lp/driver/spi.cc5
-rw-r--r--src/arch/msp430fr5969lp/driver/stdin.cc5
-rw-r--r--src/arch/msp430fr5969lp/driver/stdout.cc5
-rw-r--r--src/arch/msp430fr5969lp/driver/timer.cc5
-rw-r--r--src/arch/msp430fr5969lp/driver/uptime.cc5
-rwxr-xr-xsrc/arch/msp430fr5969lp/model.py4
-rw-r--r--src/arch/msp430fr5994lp/Kconfig3
-rw-r--r--src/arch/msp430fr5994lp/Makefile.inc4
-rw-r--r--src/arch/msp430fr5994lp/arch.cc5
-rw-r--r--src/arch/msp430fr5994lp/driver/adc.cc5
-rw-r--r--src/arch/msp430fr5994lp/driver/counter.cc5
-rw-r--r--src/arch/msp430fr5994lp/driver/cpufreq.cc5
-rw-r--r--src/arch/msp430fr5994lp/driver/gpio.cc5
-rw-r--r--src/arch/msp430fr5994lp/driver/i2c.cc5
-rw-r--r--src/arch/msp430fr5994lp/driver/spi.cc5
-rw-r--r--src/arch/msp430fr5994lp/driver/spi_a1.cc5
-rw-r--r--src/arch/msp430fr5994lp/driver/stdin.cc5
-rw-r--r--src/arch/msp430fr5994lp/driver/stdout.cc5
-rw-r--r--src/arch/msp430fr5994lp/driver/timed_resistive_load.cc5
-rw-r--r--src/arch/msp430fr5994lp/driver/timer.cc5
-rw-r--r--src/arch/msp430fr5994lp/driver/uptime.cc5
-rwxr-xr-xsrc/arch/msp430fr5994lp/model.py4
-rw-r--r--src/arch/posix/Kconfig3
-rw-r--r--src/arch/posix/Makefile.inc4
-rw-r--r--src/arch/posix/arch.cc5
-rw-r--r--src/arch/posix/driver/counter.cc5
-rw-r--r--src/arch/posix/driver/gpio.cc5
-rw-r--r--src/arch/posix/driver/stdout.cc5
-rw-r--r--src/arch/posix/driver/uptime.cc5
-rw-r--r--src/arch/stm32f446re-nucleo/Kconfig3
-rw-r--r--src/arch/stm32f446re-nucleo/Makefile.inc4
-rw-r--r--src/arch/stm32f446re-nucleo/arch.cc5
-rw-r--r--src/arch/stm32f446re-nucleo/driver/counter.cc5
-rw-r--r--src/arch/stm32f446re-nucleo/driver/gpio.cc5
-rw-r--r--src/arch/stm32f446re-nucleo/driver/stdout.cc5
-rw-r--r--src/arch/stm32f446re-nucleo/driver/uptime.cc5
-rw-r--r--src/arch/stm32f446re-nucleo/stm32f446.ld6
-rw-r--r--src/driver/Kconfig4
-rw-r--r--src/driver/aemr_transition_sync.cc5
-rw-r--r--src/driver/am2320.cc5
-rw-r--r--src/driver/bme280.cc2
-rw-r--r--src/driver/bme680.cc2
-rw-r--r--src/driver/bme680_util.cc5
-rw-r--r--src/driver/ccs811.cc5
-rw-r--r--src/driver/eeprom24lc64.cc5
-rw-r--r--src/driver/hdc1080.cc5
-rw-r--r--src/driver/lm75.cc5
-rw-r--r--src/driver/max44009.cc5
-rw-r--r--src/driver/mmsimple.cc5
-rw-r--r--src/driver/mmsubstate.cc5
-rw-r--r--src/driver/mpu9250.cc2
-rw-r--r--src/driver/nrf24l01.cc5
-rw-r--r--src/driver/resistive_load.cc5
-rw-r--r--src/driver/s5851a.cc5
-rw-r--r--src/driver/sharp96.cc5
-rw-r--r--src/driver/soft_i2c.cc5
-rw-r--r--src/os/object/cpp_helpers.cc5
-rw-r--r--src/os/object/outputstream.cc12
-rw-r--r--src/os/object/xdr16input.cc5
-rw-r--r--src/os/object/xdr16stream.cc7
-rw-r--r--src/os/object/xdrinput.cc9
-rw-r--r--src/os/object/xdrstream.cc9
-rwxr-xr-xtests/posix4
259 files changed, 1864 insertions, 81 deletions
diff --git a/COPYING b/COPYING
index f2389e5..f57b358 100644
--- a/COPYING
+++ b/COPYING
@@ -1,4 +1,4 @@
-Copyright (C) 2018-2019 Daniel Friesel <daniel.friesel@uos.de>
+Copyright (C) 2018-2020 Daniel Friesel <daniel.friesel@uos.de>
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
diff --git a/LICENSES/BSD-2-Clause.txt b/LICENSES/BSD-2-Clause.txt
new file mode 100644
index 0000000..baa80b5
--- /dev/null
+++ b/LICENSES/BSD-2-Clause.txt
@@ -0,0 +1,22 @@
+Copyright (c) <year> <owner> All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice,
+this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+this list of conditions and the following disclaimer in the documentation
+and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
+USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/LICENSES/BSD-3-Clause.txt b/LICENSES/BSD-3-Clause.txt
new file mode 100644
index 0000000..0741db7
--- /dev/null
+++ b/LICENSES/BSD-3-Clause.txt
@@ -0,0 +1,26 @@
+Copyright (c) <year> <owner>. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice,
+this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+this list of conditions and the following disclaimer in the documentation
+and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its contributors
+may be used to endorse or promote products derived from this software without
+specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
+USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/LICENSES/CC0-1.0.txt b/LICENSES/CC0-1.0.txt
new file mode 100644
index 0000000..0e259d4
--- /dev/null
+++ b/LICENSES/CC0-1.0.txt
@@ -0,0 +1,121 @@
+Creative Commons Legal Code
+
+CC0 1.0 Universal
+
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
+ HEREUNDER.
+
+Statement of Purpose
+
+The laws of most jurisdictions throughout the world automatically confer
+exclusive Copyright and Related Rights (defined below) upon the creator
+and subsequent owner(s) (each and all, an "owner") of an original work of
+authorship and/or a database (each, a "Work").
+
+Certain owners wish to permanently relinquish those rights to a Work for
+the purpose of contributing to a commons of creative, cultural and
+scientific works ("Commons") that the public can reliably and without fear
+of later claims of infringement build upon, modify, incorporate in other
+works, reuse and redistribute as freely as possible in any form whatsoever
+and for any purposes, including without limitation commercial purposes.
+These owners may contribute to the Commons to promote the ideal of a free
+culture and the further production of creative, cultural and scientific
+works, or to gain reputation or greater distribution for their Work in
+part through the use and efforts of others.
+
+For these and/or other purposes and motivations, and without any
+expectation of additional consideration or compensation, the person
+associating CC0 with a Work (the "Affirmer"), to the extent that he or she
+is an owner of Copyright and Related Rights in the Work, voluntarily
+elects to apply CC0 to the Work and publicly distribute the Work under its
+terms, with knowledge of his or her Copyright and Related Rights in the
+Work and the meaning and intended legal effect of CC0 on those rights.
+
+1. Copyright and Related Rights. A Work made available under CC0 may be
+protected by copyright and related or neighboring rights ("Copyright and
+Related Rights"). Copyright and Related Rights include, but are not
+limited to, the following:
+
+ i. the right to reproduce, adapt, distribute, perform, display,
+ communicate, and translate a Work;
+ ii. moral rights retained by the original author(s) and/or performer(s);
+iii. publicity and privacy rights pertaining to a person's image or
+ likeness depicted in a Work;
+ iv. rights protecting against unfair competition in regards to a Work,
+ subject to the limitations in paragraph 4(a), below;
+ v. rights protecting the extraction, dissemination, use and reuse of data
+ in a Work;
+ vi. database rights (such as those arising under Directive 96/9/EC of the
+ European Parliament and of the Council of 11 March 1996 on the legal
+ protection of databases, and under any national implementation
+ thereof, including any amended or successor version of such
+ directive); and
+vii. other similar, equivalent or corresponding rights throughout the
+ world based on applicable law or treaty, and any national
+ implementations thereof.
+
+2. Waiver. To the greatest extent permitted by, but not in contravention
+of, applicable law, Affirmer hereby overtly, fully, permanently,
+irrevocably and unconditionally waives, abandons, and surrenders all of
+Affirmer's Copyright and Related Rights and associated claims and causes
+of action, whether now known or unknown (including existing as well as
+future claims and causes of action), in the Work (i) in all territories
+worldwide, (ii) for the maximum duration provided by applicable law or
+treaty (including future time extensions), (iii) in any current or future
+medium and for any number of copies, and (iv) for any purpose whatsoever,
+including without limitation commercial, advertising or promotional
+purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
+member of the public at large and to the detriment of Affirmer's heirs and
+successors, fully intending that such Waiver shall not be subject to
+revocation, rescission, cancellation, termination, or any other legal or
+equitable action to disrupt the quiet enjoyment of the Work by the public
+as contemplated by Affirmer's express Statement of Purpose.
+
+3. Public License Fallback. Should any part of the Waiver for any reason
+be judged legally invalid or ineffective under applicable law, then the
+Waiver shall be preserved to the maximum extent permitted taking into
+account Affirmer's express Statement of Purpose. In addition, to the
+extent the Waiver is so judged Affirmer hereby grants to each affected
+person a royalty-free, non transferable, non sublicensable, non exclusive,
+irrevocable and unconditional license to exercise Affirmer's Copyright and
+Related Rights in the Work (i) in all territories worldwide, (ii) for the
+maximum duration provided by applicable law or treaty (including future
+time extensions), (iii) in any current or future medium and for any number
+of copies, and (iv) for any purpose whatsoever, including without
+limitation commercial, advertising or promotional purposes (the
+"License"). The License shall be deemed effective as of the date CC0 was
+applied by Affirmer to the Work. Should any part of the License for any
+reason be judged legally invalid or ineffective under applicable law, such
+partial invalidity or ineffectiveness shall not invalidate the remainder
+of the License, and in such case Affirmer hereby affirms that he or she
+will not (i) exercise any of his or her remaining Copyright and Related
+Rights in the Work or (ii) assert any associated claims and causes of
+action with respect to the Work, in either case contrary to Affirmer's
+express Statement of Purpose.
+
+4. Limitations and Disclaimers.
+
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
+ surrendered, licensed or otherwise affected by this document.
+ b. Affirmer offers the Work as-is and makes no representations or
+ warranties of any kind concerning the Work, express, implied,
+ statutory or otherwise, including without limitation warranties of
+ title, merchantability, fitness for a particular purpose, non
+ infringement, or the absence of latent or other defects, accuracy, or
+ the present or absence of errors, whether or not discoverable, all to
+ the greatest extent permissible under applicable law.
+ c. Affirmer disclaims responsibility for clearing rights of other persons
+ that may apply to the Work or any use thereof, including without
+ limitation any person's Copyright and Related Rights in the Work.
+ Further, Affirmer disclaims responsibility for obtaining any necessary
+ consents, permissions or other rights required for any use of the
+ Work.
+ d. Affirmer understands and acknowledges that Creative Commons is not a
+ party to this document and has no duty or obligation with respect to
+ this CC0 or use of the Work.
diff --git a/LICENSES/GPL-2.0-only.txt b/LICENSES/GPL-2.0-only.txt
new file mode 100644
index 0000000..3b6070f
--- /dev/null
+++ b/LICENSES/GPL-2.0-only.txt
@@ -0,0 +1,311 @@
+GNU GENERAL PUBLIC LICENSE
+Version 2, June 1991
+
+Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+
+Everyone is permitted to copy and distribute verbatim copies of this license
+document, but changing it is not allowed.
+
+Preamble
+
+The licenses for most software are designed to take away your freedom to share
+and change it. By contrast, the GNU General Public License is intended to
+guarantee your freedom to share and change free software--to make sure the
+software is free for all its users. This General Public License applies to
+most of the Free Software Foundation's software and to any other program whose
+authors commit to using it. (Some other Free Software Foundation software
+is covered by the GNU Lesser General Public License instead.) You can apply
+it to your programs, too.
+
+When we speak of free software, we are referring to freedom, not price. Our
+General Public Licenses are designed to make sure that you have the freedom
+to distribute copies of free software (and charge for this service if you
+wish), that you receive source code or can get it if you want it, that you
+can change the software or use pieces of it in new free programs; and that
+you know you can do these things.
+
+To protect your rights, we need to make restrictions that forbid anyone to
+deny you these rights or to ask you to surrender the rights. These restrictions
+translate to certain responsibilities for you if you distribute copies of
+the software, or if you modify it.
+
+For example, if you distribute copies of such a program, whether gratis or
+for a fee, you must give the recipients all the rights that you have. You
+must make sure that they, too, receive or can get the source code. And you
+must show them these terms so they know their rights.
+
+We protect your rights with two steps: (1) copyright the software, and (2)
+offer you this license which gives you legal permission to copy, distribute
+and/or modify the software.
+
+Also, for each author's protection and ours, we want to make certain that
+everyone understands that there is no warranty for this free software. If
+the software is modified by someone else and passed on, we want its recipients
+to know that what they have is not the original, so that any problems introduced
+by others will not reflect on the original authors' reputations.
+
+Finally, any free program is threatened constantly by software patents. We
+wish to avoid the danger that redistributors of a free program will individually
+obtain patent licenses, in effect making the program proprietary. To prevent
+this, we have made it clear that any patent must be licensed for everyone's
+free use or not licensed at all.
+
+The precise terms and conditions for copying, distribution and modification
+follow.
+
+TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+0. This License applies to any program or other work which contains a notice
+placed by the copyright holder saying it may be distributed under the terms
+of this General Public License. The "Program", below, refers to any such program
+or work, and a "work based on the Program" means either the Program or any
+derivative work under copyright law: that is to say, a work containing the
+Program or a portion of it, either verbatim or with modifications and/or translated
+into another language. (Hereinafter, translation is included without limitation
+in the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not covered
+by this License; they are outside its scope. The act of running the Program
+is not restricted, and the output from the Program is covered only if its
+contents constitute a work based on the Program (independent of having been
+made by running the Program). Whether that is true depends on what the Program
+does.
+
+1. You may copy and distribute verbatim copies of the Program's source code
+as you receive it, in any medium, provided that you conspicuously and appropriately
+publish on each copy an appropriate copyright notice and disclaimer of warranty;
+keep intact all the notices that refer to this License and to the absence
+of any warranty; and give any other recipients of the Program a copy of this
+License along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and you
+may at your option offer warranty protection in exchange for a fee.
+
+2. You may modify your copy or copies of the Program or any portion of it,
+thus forming a work based on the Program, and copy and distribute such modifications
+or work under the terms of Section 1 above, provided that you also meet all
+of these conditions:
+
+a) You must cause the modified files to carry prominent notices stating that
+you changed the files and the date of any change.
+
+b) You must cause any work that you distribute or publish, that in whole or
+in part contains or is derived from the Program or any part thereof, to be
+licensed as a whole at no charge to all third parties under the terms of this
+License.
+
+c) If the modified program normally reads commands interactively when run,
+you must cause it, when started running for such interactive use in the most
+ordinary way, to print or display an announcement including an appropriate
+copyright notice and a notice that there is no warranty (or else, saying that
+you provide a warranty) and that users may redistribute the program under
+these conditions, and telling the user how to view a copy of this License.
+(Exception: if the Program itself is interactive but does not normally print
+such an announcement, your work based on the Program is not required to print
+an announcement.)
+
+These requirements apply to the modified work as a whole. If identifiable
+sections of that work are not derived from the Program, and can be reasonably
+considered independent and separate works in themselves, then this License,
+and its terms, do not apply to those sections when you distribute them as
+separate works. But when you distribute the same sections as part of a whole
+which is a work based on the Program, the distribution of the whole must be
+on the terms of this License, whose permissions for other licensees extend
+to the entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest your
+rights to work written entirely by you; rather, the intent is to exercise
+the right to control the distribution of derivative or collective works based
+on the Program.
+
+In addition, mere aggregation of another work not based on the Program with
+the Program (or with a work based on the Program) on a volume of a storage
+or distribution medium does not bring the other work under the scope of this
+License.
+
+3. You may copy and distribute the Program (or a work based on it, under Section
+2) in object code or executable form under the terms of Sections 1 and 2 above
+provided that you also do one of the following:
+
+a) Accompany it with the complete corresponding machine-readable source code,
+which must be distributed under the terms of Sections 1 and 2 above on a medium
+customarily used for software interchange; or,
+
+b) Accompany it with a written offer, valid for at least three years, to give
+any third party, for a charge no more than your cost of physically performing
+source distribution, a complete machine-readable copy of the corresponding
+source code, to be distributed under the terms of Sections 1 and 2 above on
+a medium customarily used for software interchange; or,
+
+c) Accompany it with the information you received as to the offer to distribute
+corresponding source code. (This alternative is allowed only for noncommercial
+distribution and only if you received the program in object code or executable
+form with such an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for making
+modifications to it. For an executable work, complete source code means all
+the source code for all modules it contains, plus any associated interface
+definition files, plus the scripts used to control compilation and installation
+of the executable. However, as a special exception, the source code distributed
+need not include anything that is normally distributed (in either source or
+binary form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component itself
+accompanies the executable.
+
+If distribution of executable or object code is made by offering access to
+copy from a designated place, then offering equivalent access to copy the
+source code from the same place counts as distribution of the source code,
+even though third parties are not compelled to copy the source along with
+the object code.
+
+4. You may not copy, modify, sublicense, or distribute the Program except
+as expressly provided under this License. Any attempt otherwise to copy, modify,
+sublicense or distribute the Program is void, and will automatically terminate
+your rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses terminated
+so long as such parties remain in full compliance.
+
+5. You are not required to accept this License, since you have not signed
+it. However, nothing else grants you permission to modify or distribute the
+Program or its derivative works. These actions are prohibited by law if you
+do not accept this License. Therefore, by modifying or distributing the Program
+(or any work based on the Program), you indicate your acceptance of this License
+to do so, and all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+6. Each time you redistribute the Program (or any work based on the Program),
+the recipient automatically receives a license from the original licensor
+to copy, distribute or modify the Program subject to these terms and conditions.
+You may not impose any further restrictions on the recipients' exercise of
+the rights granted herein. You are not responsible for enforcing compliance
+by third parties to this License.
+
+7. If, as a consequence of a court judgment or allegation of patent infringement
+or for any other reason (not limited to patent issues), conditions are imposed
+on you (whether by court order, agreement or otherwise) that contradict the
+conditions of this License, they do not excuse you from the conditions of
+this License. If you cannot distribute so as to satisfy simultaneously your
+obligations under this License and any other pertinent obligations, then as
+a consequence you may not distribute the Program at all. For example, if a
+patent license would not permit royalty-free redistribution of the Program
+by all those who receive copies directly or indirectly through you, then the
+only way you could satisfy both it and this License would be to refrain entirely
+from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply and
+the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any patents
+or other property right claims or to contest validity of any such claims;
+this section has the sole purpose of protecting the integrity of the free
+software distribution system, which is implemented by public license practices.
+Many people have made generous contributions to the wide range of software
+distributed through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing to
+distribute software through any other system and a licensee cannot impose
+that choice.
+
+This section is intended to make thoroughly clear what is believed to be a
+consequence of the rest of this License.
+
+8. If the distribution and/or use of the Program is restricted in certain
+countries either by patents or by copyrighted interfaces, the original copyright
+holder who places the Program under this License may add an explicit geographical
+distribution limitation excluding those countries, so that distribution is
+permitted only in or among countries not thus excluded. In such case, this
+License incorporates the limitation as if written in the body of this License.
+
+9. The Free Software Foundation may publish revised and/or new versions of
+the General Public License from time to time. Such new versions will be similar
+in spirit to the present version, but may differ in detail to address new
+problems or concerns.
+
+Each version is given a distinguishing version number. If the Program specifies
+a version number of this License which applies to it and "any later version",
+you have the option of following the terms and conditions either of that version
+or of any later version published by the Free Software Foundation. If the
+Program does not specify a version number of this License, you may choose
+any version ever published by the Free Software Foundation.
+
+10. If you wish to incorporate parts of the Program into other free programs
+whose distribution conditions are different, write to the author to ask for
+permission. For software which is copyrighted by the Free Software Foundation,
+write to the Free Software Foundation; we sometimes make exceptions for this.
+Our decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing and reuse
+of software generally.
+
+NO WARRANTY
+
+11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR
+THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE
+STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM
+"AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
+OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE
+OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA
+OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES
+OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH
+HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+END OF TERMS AND CONDITIONS
+
+How to Apply These Terms to Your New Programs
+
+If you develop a new program, and you want it to be of the greatest possible
+use to the public, the best way to achieve this is to make it free software
+which everyone can redistribute and change under these terms.
+
+To do so, attach the following notices to the program. It is safest to attach
+them to the start of each source file to most effectively convey the exclusion
+of warranty; and each file should have at least the "copyright" line and a
+pointer to where the full notice is found.
+
+one line to give the program's name and an idea of what it does. Copyright
+(C) yyyy name of author
+
+This program is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free Software
+Foundation; either version 2 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along with
+this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
+Street, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how
+to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this when
+it starts in an interactive mode:
+
+Gnomovision version 69, Copyright (C) year name of author Gnomovision comes
+with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software,
+and you are welcome to redistribute it under certain conditions; type `show
+c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may be
+called something other than `show w' and `show c'; they could even be mouse-clicks
+or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your school,
+if any, to sign a "copyright disclaimer" for the program, if necessary. Here
+is a sample; alter the names:
+
+Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision'
+(which makes passes at compilers) written by James Hacker.
+
+signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice
diff --git a/LICENSES/LGPL-3.0-or-later.txt b/LICENSES/LGPL-3.0-or-later.txt
new file mode 100644
index 0000000..9e2e9f7
--- /dev/null
+++ b/LICENSES/LGPL-3.0-or-later.txt
@@ -0,0 +1,144 @@
+GNU LESSER GENERAL PUBLIC LICENSE
+Version 3, 29 June 2007
+
+Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+
+Everyone is permitted to copy and distribute verbatim copies of this license
+document, but changing it is not allowed.
+
+This version of the GNU Lesser General Public License incorporates the terms
+and conditions of version 3 of the GNU General Public License, supplemented
+by the additional permissions listed below.
+
+0. Additional Definitions.
+
+As used herein, "this License" refers to version 3 of the GNU Lesser General
+Public License, and the "GNU GPL" refers to version 3 of the GNU General Public
+License.
+
+"The Library" refers to a covered work governed by this License, other than
+an Application or a Combined Work as defined below.
+
+An "Application" is any work that makes use of an interface provided by the
+Library, but which is not otherwise based on the Library. Defining a subclass
+of a class defined by the Library is deemed a mode of using an interface provided
+by the Library.
+
+A "Combined Work" is a work produced by combining or linking an Application
+with the Library. The particular version of the Library with which the Combined
+Work was made is also called the "Linked Version".
+
+The "Minimal Corresponding Source" for a Combined Work means the Corresponding
+Source for the Combined Work, excluding any source code for portions of the
+Combined Work that, considered in isolation, are based on the Application,
+and not on the Linked Version.
+
+The "Corresponding Application Code" for a Combined Work means the object
+code and/or source code for the Application, including any data and utility
+programs needed for reproducing the Combined Work from the Application, but
+excluding the System Libraries of the Combined Work.
+
+1. Exception to Section 3 of the GNU GPL.
+You may convey a covered work under sections 3 and 4 of this License without
+being bound by section 3 of the GNU GPL.
+
+2. Conveying Modified Versions.
+If you modify a copy of the Library, and, in your modifications, a facility
+refers to a function or data to be supplied by an Application that uses the
+facility (other than as an argument passed when the facility is invoked),
+then you may convey a copy of the modified version:
+
+a) under this License, provided that you make a good faith effort to ensure
+that, in the event an Application does not supply the function or data, the
+facility still operates, and performs whatever part of its purpose remains
+meaningful, or
+
+b) under the GNU GPL, with none of the additional permissions of this License
+applicable to that copy.
+
+3. Object Code Incorporating Material from Library Header Files.
+The object code form of an Application may incorporate material from a header
+file that is part of the Library. You may convey such object code under terms
+of your choice, provided that, if the incorporated material is not limited
+to numerical parameters, data structure layouts and accessors, or small macros,
+inline functions and templates (ten or fewer lines in length), you do both
+of the following:
+
+a) Give prominent notice with each copy of the object code that the Library
+is used in it and that the Library and its use are covered by this License.
+
+b) Accompany the object code with a copy of the GNU GPL and this license document.
+
+4. Combined Works.
+You may convey a Combined Work under terms of your choice that, taken together,
+effectively do not restrict modification of the portions of the Library contained
+in the Combined Work and reverse engineering for debugging such modifications,
+if you also do each of the following:
+
+a) Give prominent notice with each copy of the Combined Work that the Library
+is used in it and that the Library and its use are covered by this License.
+
+b) Accompany the Combined Work with a copy of the GNU GPL and this license
+document.
+
+c) For a Combined Work that displays copyright notices during execution, include
+the copyright notice for the Library among these notices, as well as a reference
+directing the user to the copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+0) Convey the Minimal Corresponding Source under the terms of this License,
+and the Corresponding Application Code in a form suitable for, and under terms
+that permit, the user to recombine or relink the Application with a modified
+version of the Linked Version to produce a modified Combined Work, in the
+manner specified by section 6 of the GNU GPL for conveying Corresponding Source.
+
+1) Use a suitable shared library mechanism for linking with the Library.
+A suitable mechanism is one that (a) uses at run time a copy of the Library
+already present on the user's computer system, and (b) will operate properly
+with a modified version of the Library that is interface-compatible with the
+Linked Version.
+
+e) Provide Installation Information, but only if you would otherwise be required
+to provide such information under section 6 of the GNU GPL, and only to the
+extent that such information is necessary to install and execute a modified
+version of the Combined Work produced by recombining or relinking the Application
+with a modified version of the Linked Version. (If you use option 4d0, the
+Installation Information must accompany the Minimal Corresponding Source and
+Corresponding Application Code. If you use option 4d1, you must provide the
+Installation Information in the manner specified by section 6 of the GNU GPL
+for conveying Corresponding Source.)
+
+5. Combined Libraries.
+You may place library facilities that are a work based on the Library side
+by side in a single library together with other library facilities that are
+not Applications and are not covered by this License, and convey such a combined
+library under terms of your choice, if you do both of the following:
+
+a) Accompany the combined library with a copy of the same work based on the
+Library, uncombined with any other library facilities, conveyed under the
+terms of this License.
+
+b) Give prominent notice with the combined library that part of it is a work
+based on the Library, and explaining where to find the accompanying uncombined
+form of the same work.
+
+6. Revised Versions of the GNU Lesser General Public License.
+The Free Software Foundation may publish revised and/or new versions of the
+GNU Lesser General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to address
+new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library as you
+received it specifies that a certain numbered version of the GNU Lesser General
+Public License "or any later version" applies to it, you have the option of
+following the terms and conditions either of that published version or of
+any later version published by the Free Software Foundation. If the Library
+as you received it does not specify a version number of the GNU Lesser General
+Public License, you may choose any version of the GNU Lesser General Public
+License ever published by the Free Software Foundation.
+
+If the Library as you received it specifies that a proxy can decide whether
+future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is permanent
+authorization for you to choose that version for the Library.
diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt
new file mode 100644
index 0000000..f0fd20a
--- /dev/null
+++ b/LICENSES/MIT.txt
@@ -0,0 +1,20 @@
+MIT License
+
+Copyright (c) <year> <copyright holders>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is furnished
+to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
+OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
+OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/Makefile b/Makefile
index 613741c..5ec0340 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,7 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
+
# Only load .config when app/arch are not specified on commandline
ifneq (${app}, )
CONFIG_app = ${app}
diff --git a/include/arch.h b/include/arch.h
index 1911271..5142a51 100644
--- a/include/arch.h
+++ b/include/arch.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef ARCH_H
#define ARCH_H
diff --git a/include/arch/arduino-nano/arch_types.h b/include/arch/arduino-nano/arch_types.h
index 5f4e729..ed0b543 100644
--- a/include/arch/arduino-nano/arch_types.h
+++ b/include/arch/arduino-nano/arch_types.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef ARCH_TYPES_H
#define ARCH_TYPES_H
diff --git a/include/arch/arduino-nano/driver/adc.h b/include/arch/arduino-nano/driver/adc.h
index 4af64b8..f913b4f 100644
--- a/include/arch/arduino-nano/driver/adc.h
+++ b/include/arch/arduino-nano/driver/adc.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef ADC_H
#define ADC_H
diff --git a/include/arch/arduino-nano/driver/counter.h b/include/arch/arduino-nano/driver/counter.h
index c89fb44..8812407 100644
--- a/include/arch/arduino-nano/driver/counter.h
+++ b/include/arch/arduino-nano/driver/counter.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef COUNTER_H
#define COUNTER_H
diff --git a/include/arch/arduino-nano/driver/gpio.h b/include/arch/arduino-nano/driver/gpio.h
index 30df113..47cb7dc 100644
--- a/include/arch/arduino-nano/driver/gpio.h
+++ b/include/arch/arduino-nano/driver/gpio.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef GPIO_H
#define GPIO_H
diff --git a/include/arch/arduino-nano/driver/i2c.h b/include/arch/arduino-nano/driver/i2c.h
index 6d6ea66..7c1dcc2 100644
--- a/include/arch/arduino-nano/driver/i2c.h
+++ b/include/arch/arduino-nano/driver/i2c.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef I2C_H
#define I2C_H
diff --git a/include/arch/arduino-nano/driver/neopixel.h b/include/arch/arduino-nano/driver/neopixel.h
index 6416124..6671b3d 100644
--- a/include/arch/arduino-nano/driver/neopixel.h
+++ b/include/arch/arduino-nano/driver/neopixel.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2019 Adafruit Industries
+ *
+ * SPDX-License-Identifier: LGPL-3.0-or-later
+ */
/*!
* @file Adafruit_NeoPixel.h
*
diff --git a/include/arch/arduino-nano/driver/spi.h b/include/arch/arduino-nano/driver/spi.h
index 8c593ee..2738312 100644
--- a/include/arch/arduino-nano/driver/spi.h
+++ b/include/arch/arduino-nano/driver/spi.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef SPI_H
#define SPI_H
diff --git a/include/arch/arduino-nano/driver/stdin.h b/include/arch/arduino-nano/driver/stdin.h
index 6462e0c..1085111 100644
--- a/include/arch/arduino-nano/driver/stdin.h
+++ b/include/arch/arduino-nano/driver/stdin.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef STANDARDINPUT_H
#define STANDARDINPUT_H
diff --git a/include/arch/arduino-nano/driver/stdout.h b/include/arch/arduino-nano/driver/stdout.h
index 2eb669d..eaf7eac 100644
--- a/include/arch/arduino-nano/driver/stdout.h
+++ b/include/arch/arduino-nano/driver/stdout.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef STANDARDOUTPUT_H
#define STANDARDOUTPUT_H
diff --git a/include/arch/arduino-nano/driver/timer.h b/include/arch/arduino-nano/driver/timer.h
index 87acfea..e5375ba 100644
--- a/include/arch/arduino-nano/driver/timer.h
+++ b/include/arch/arduino-nano/driver/timer.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include <avr/io.h>
#include <avr/interrupt.h>
diff --git a/include/arch/arduino-nano/driver/uptime.h b/include/arch/arduino-nano/driver/uptime.h
index 86a8bb5..fa0b943 100644
--- a/include/arch/arduino-nano/driver/uptime.h
+++ b/include/arch/arduino-nano/driver/uptime.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef UPTIME_H
#define UPTIME_H
diff --git a/include/arch/blinkenrocket/driver/gpio.h b/include/arch/blinkenrocket/driver/gpio.h
index be6eb38..0d76521 100644
--- a/include/arch/blinkenrocket/driver/gpio.h
+++ b/include/arch/blinkenrocket/driver/gpio.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef GPIO_H
#define GPIO_H
diff --git a/include/arch/blinkenrocket/driver/i2c.h b/include/arch/blinkenrocket/driver/i2c.h
index 6d6ea66..7c1dcc2 100644
--- a/include/arch/blinkenrocket/driver/i2c.h
+++ b/include/arch/blinkenrocket/driver/i2c.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef I2C_H
#define I2C_H
diff --git a/include/arch/blinkenrocket/driver/stdout.h b/include/arch/blinkenrocket/driver/stdout.h
index 2eb669d..eaf7eac 100644
--- a/include/arch/blinkenrocket/driver/stdout.h
+++ b/include/arch/blinkenrocket/driver/stdout.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef STANDARDOUTPUT_H
#define STANDARDOUTPUT_H
diff --git a/include/arch/blinkenrocket/driver/uptime.h b/include/arch/blinkenrocket/driver/uptime.h
index d5fdd2e..9457bcf 100644
--- a/include/arch/blinkenrocket/driver/uptime.h
+++ b/include/arch/blinkenrocket/driver/uptime.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef UPTIME_H
#define UPTIME_H
diff --git a/include/arch/esp8266/driver/counter.h b/include/arch/esp8266/driver/counter.h
index beb36e5..8c2d22f 100644
--- a/include/arch/esp8266/driver/counter.h
+++ b/include/arch/esp8266/driver/counter.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef COUNTER_H
#define COUNTER_H
diff --git a/include/arch/esp8266/driver/gpio.h b/include/arch/esp8266/driver/gpio.h
index 3db5d9d..b609f76 100644
--- a/include/arch/esp8266/driver/gpio.h
+++ b/include/arch/esp8266/driver/gpio.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef GPIO_H
#define GPIO_H
diff --git a/include/arch/esp8266/driver/stdin.h b/include/arch/esp8266/driver/stdin.h
index 6462e0c..1085111 100644
--- a/include/arch/esp8266/driver/stdin.h
+++ b/include/arch/esp8266/driver/stdin.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef STANDARDINPUT_H
#define STANDARDINPUT_H
diff --git a/include/arch/esp8266/driver/stdout.h b/include/arch/esp8266/driver/stdout.h
index 8d366d8..2484cee 100644
--- a/include/arch/esp8266/driver/stdout.h
+++ b/include/arch/esp8266/driver/stdout.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef STANDARDOUTPUT_H
#define STANDARDOUTPUT_H
@@ -37,25 +42,18 @@ class StandardOutput {
};
-// ENDL: new line character (and flush)
StandardOutput & endl(StandardOutput & os);
-// BIN: print numbers in binary form.
StandardOutput & bin(StandardOutput & os);
-// OCT: print numbers in octal form.
StandardOutput & oct(StandardOutput & os);
-// DEC: print numbers in decimal form.
StandardOutput & dec(StandardOutput & os);
-// HEX: print numbers in hexadecimal form.
StandardOutput & hex(StandardOutput & os);
-// FLUSH: flush StandardOutput buffer
StandardOutput & flush(StandardOutput & os);
-// TERM: zero-termination
StandardOutput & term(StandardOutput & os);
extern StandardOutput kout;
diff --git a/include/arch/esp8266/driver/uptime.h b/include/arch/esp8266/driver/uptime.h
index 44dde43..f3e2f23 100644
--- a/include/arch/esp8266/driver/uptime.h
+++ b/include/arch/esp8266/driver/uptime.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef UPTIME_H
#define UPTIME_H
diff --git a/include/arch/esp8266/user_config.h b/include/arch/esp8266/user_config.h
index 529fb46..bbd7001 100644
--- a/include/arch/esp8266/user_config.h
+++ b/include/arch/esp8266/user_config.h
@@ -1,4 +1,9 @@
/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: CC0-1.0
+ */
+/*
* required by ESP8266 SDK's osapi.h
*
* Intentionally left blank.
diff --git a/include/arch/msp430fr5969lp/driver/adc.h b/include/arch/msp430fr5969lp/driver/adc.h
index d93aed4..e1db0b5 100644
--- a/include/arch/msp430fr5969lp/driver/adc.h
+++ b/include/arch/msp430fr5969lp/driver/adc.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef ADC_H
#define ADC_H
diff --git a/include/arch/msp430fr5969lp/driver/counter.h b/include/arch/msp430fr5969lp/driver/counter.h
index 0d7e140..ebb3045 100644
--- a/include/arch/msp430fr5969lp/driver/counter.h
+++ b/include/arch/msp430fr5969lp/driver/counter.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef COUNTER_H
#define COUNTER_H
diff --git a/include/arch/msp430fr5969lp/driver/gpio.h b/include/arch/msp430fr5969lp/driver/gpio.h
index 65b5567..0b8058b 100644
--- a/include/arch/msp430fr5969lp/driver/gpio.h
+++ b/include/arch/msp430fr5969lp/driver/gpio.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef GPIO_H
#define GPIO_H
diff --git a/include/arch/msp430fr5969lp/driver/i2c.h b/include/arch/msp430fr5969lp/driver/i2c.h
index 6d6ea66..7c1dcc2 100644
--- a/include/arch/msp430fr5969lp/driver/i2c.h
+++ b/include/arch/msp430fr5969lp/driver/i2c.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef I2C_H
#define I2C_H
diff --git a/include/arch/msp430fr5969lp/driver/spi.h b/include/arch/msp430fr5969lp/driver/spi.h
index 4be7346..32b9f94 100644
--- a/include/arch/msp430fr5969lp/driver/spi.h
+++ b/include/arch/msp430fr5969lp/driver/spi.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef SPI_H
#define SPI_H
diff --git a/include/arch/msp430fr5969lp/driver/stdin.h b/include/arch/msp430fr5969lp/driver/stdin.h
index 6462e0c..1085111 100644
--- a/include/arch/msp430fr5969lp/driver/stdin.h
+++ b/include/arch/msp430fr5969lp/driver/stdin.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef STANDARDINPUT_H
#define STANDARDINPUT_H
diff --git a/include/arch/msp430fr5969lp/driver/stdout.h b/include/arch/msp430fr5969lp/driver/stdout.h
index 2eb669d..eaf7eac 100644
--- a/include/arch/msp430fr5969lp/driver/stdout.h
+++ b/include/arch/msp430fr5969lp/driver/stdout.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef STANDARDOUTPUT_H
#define STANDARDOUTPUT_H
diff --git a/include/arch/msp430fr5969lp/driver/timer.h b/include/arch/msp430fr5969lp/driver/timer.h
index cb37da2..c07ae4e 100644
--- a/include/arch/msp430fr5969lp/driver/timer.h
+++ b/include/arch/msp430fr5969lp/driver/timer.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include <msp430.h>
#include <stdint.h>
diff --git a/include/arch/msp430fr5969lp/driver/uptime.h b/include/arch/msp430fr5969lp/driver/uptime.h
index 3a52840..de51970 100644
--- a/include/arch/msp430fr5969lp/driver/uptime.h
+++ b/include/arch/msp430fr5969lp/driver/uptime.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef UPTIME_H
#define UPTIME_H
diff --git a/include/arch/msp430fr5994lp/driver/adc.h b/include/arch/msp430fr5994lp/driver/adc.h
index d93aed4..e1db0b5 100644
--- a/include/arch/msp430fr5994lp/driver/adc.h
+++ b/include/arch/msp430fr5994lp/driver/adc.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef ADC_H
#define ADC_H
diff --git a/include/arch/msp430fr5994lp/driver/counter.h b/include/arch/msp430fr5994lp/driver/counter.h
index 429de39..20eae62 100644
--- a/include/arch/msp430fr5994lp/driver/counter.h
+++ b/include/arch/msp430fr5994lp/driver/counter.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef COUNTER_H
#define COUNTER_H
diff --git a/include/arch/msp430fr5994lp/driver/gpio.h b/include/arch/msp430fr5994lp/driver/gpio.h
index d42dace..d972174 100644
--- a/include/arch/msp430fr5994lp/driver/gpio.h
+++ b/include/arch/msp430fr5994lp/driver/gpio.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef GPIO_H
#define GPIO_H
diff --git a/include/arch/msp430fr5994lp/driver/i2c.h b/include/arch/msp430fr5994lp/driver/i2c.h
index 6d6ea66..7c1dcc2 100644
--- a/include/arch/msp430fr5994lp/driver/i2c.h
+++ b/include/arch/msp430fr5994lp/driver/i2c.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef I2C_H
#define I2C_H
diff --git a/include/arch/msp430fr5994lp/driver/spi.h b/include/arch/msp430fr5994lp/driver/spi.h
index 4be7346..32b9f94 100644
--- a/include/arch/msp430fr5994lp/driver/spi.h
+++ b/include/arch/msp430fr5994lp/driver/spi.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef SPI_H
#define SPI_H
diff --git a/include/arch/msp430fr5994lp/driver/spi_a1.h b/include/arch/msp430fr5994lp/driver/spi_a1.h
index 8c593ee..2738312 100644
--- a/include/arch/msp430fr5994lp/driver/spi_a1.h
+++ b/include/arch/msp430fr5994lp/driver/spi_a1.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef SPI_H
#define SPI_H
diff --git a/include/arch/msp430fr5994lp/driver/stdin.h b/include/arch/msp430fr5994lp/driver/stdin.h
index 6462e0c..1085111 100644
--- a/include/arch/msp430fr5994lp/driver/stdin.h
+++ b/include/arch/msp430fr5994lp/driver/stdin.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef STANDARDINPUT_H
#define STANDARDINPUT_H
diff --git a/include/arch/msp430fr5994lp/driver/stdout.h b/include/arch/msp430fr5994lp/driver/stdout.h
index 2eb669d..eaf7eac 100644
--- a/include/arch/msp430fr5994lp/driver/stdout.h
+++ b/include/arch/msp430fr5994lp/driver/stdout.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef STANDARDOUTPUT_H
#define STANDARDOUTPUT_H
diff --git a/include/arch/msp430fr5994lp/driver/timed_resistive_load.h b/include/arch/msp430fr5994lp/driver/timed_resistive_load.h
index 6e7996c..f5704d8 100644
--- a/include/arch/msp430fr5994lp/driver/timed_resistive_load.h
+++ b/include/arch/msp430fr5994lp/driver/timed_resistive_load.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef TIMED_RESISTIVE_LOAD_H
#define TIMED_RESISTIVE_LOAD_H
diff --git a/include/arch/msp430fr5994lp/driver/timer.h b/include/arch/msp430fr5994lp/driver/timer.h
index cb37da2..c07ae4e 100644
--- a/include/arch/msp430fr5994lp/driver/timer.h
+++ b/include/arch/msp430fr5994lp/driver/timer.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include <msp430.h>
#include <stdint.h>
diff --git a/include/arch/msp430fr5994lp/driver/uptime.h b/include/arch/msp430fr5994lp/driver/uptime.h
index 3a52840..de51970 100644
--- a/include/arch/msp430fr5994lp/driver/uptime.h
+++ b/include/arch/msp430fr5994lp/driver/uptime.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef UPTIME_H
#define UPTIME_H
diff --git a/include/arch/msp430fr5994lp/int20.h b/include/arch/msp430fr5994lp/int20.h
index d648f5c..dc5af30 100644
--- a/include/arch/msp430fr5994lp/int20.h
+++ b/include/arch/msp430fr5994lp/int20.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifdef __acweaving
#define __int20 long
#endif
diff --git a/include/arch/posix/driver/counter.h b/include/arch/posix/driver/counter.h
index eeb6da4..e37bfd7 100644
--- a/include/arch/posix/driver/counter.h
+++ b/include/arch/posix/driver/counter.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef COUNTER_H
#define COUNTER_H
diff --git a/include/arch/posix/driver/gpio.h b/include/arch/posix/driver/gpio.h
index 12e9121..c630b46 100644
--- a/include/arch/posix/driver/gpio.h
+++ b/include/arch/posix/driver/gpio.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef GPIO_H
#define GPIO_H
diff --git a/include/arch/posix/driver/stdout.h b/include/arch/posix/driver/stdout.h
index b21ad56..032a878 100644
--- a/include/arch/posix/driver/stdout.h
+++ b/include/arch/posix/driver/stdout.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef STANDARDOUTPUT_H
#define STANDARDOUTPUT_H
diff --git a/include/arch/posix/driver/uptime.h b/include/arch/posix/driver/uptime.h
index 39da445..d2193e3 100644
--- a/include/arch/posix/driver/uptime.h
+++ b/include/arch/posix/driver/uptime.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef UPTIME_H
#define UPTIME_H
diff --git a/include/arch/stm32f446re-nucleo/driver/counter.h b/include/arch/stm32f446re-nucleo/driver/counter.h
index 6cb329e..f7d1e09 100644
--- a/include/arch/stm32f446re-nucleo/driver/counter.h
+++ b/include/arch/stm32f446re-nucleo/driver/counter.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef COUNTER_H
#define COUNTER_H
diff --git a/include/arch/stm32f446re-nucleo/driver/gpio.h b/include/arch/stm32f446re-nucleo/driver/gpio.h
index b98078d..d2fb40a 100644
--- a/include/arch/stm32f446re-nucleo/driver/gpio.h
+++ b/include/arch/stm32f446re-nucleo/driver/gpio.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef GPIO_H
#define GPIO_H
diff --git a/include/arch/stm32f446re-nucleo/driver/stdout.h b/include/arch/stm32f446re-nucleo/driver/stdout.h
index 2eb669d..eaf7eac 100644
--- a/include/arch/stm32f446re-nucleo/driver/stdout.h
+++ b/include/arch/stm32f446re-nucleo/driver/stdout.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef STANDARDOUTPUT_H
#define STANDARDOUTPUT_H
diff --git a/include/arch/stm32f446re-nucleo/driver/uptime.h b/include/arch/stm32f446re-nucleo/driver/uptime.h
index adace98..96d107b 100644
--- a/include/arch/stm32f446re-nucleo/driver/uptime.h
+++ b/include/arch/stm32f446re-nucleo/driver/uptime.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef UPTIME_H
#define UPTIME_H
diff --git a/include/driver/aemr_transition_sync.h b/include/driver/aemr_transition_sync.h
index e805025..4dce17c 100644
--- a/include/driver/aemr_transition_sync.h
+++ b/include/driver/aemr_transition_sync.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef AEMR_TRANSITION_SYNC_H
#define AEMR_TRANSITION_SYNC_H
diff --git a/include/driver/am2320.h b/include/driver/am2320.h
index 39c5f7e..606bbd5 100644
--- a/include/driver/am2320.h
+++ b/include/driver/am2320.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef AM2320_H
#define AM2320_H
diff --git a/include/driver/bme280.h b/include/driver/bme280.h
index 584ddee..b588eae 100644
--- a/include/driver/bme280.h
+++ b/include/driver/bme280.h
@@ -1,6 +1,8 @@
/**
* Copyright (C) 2018 - 2019 Bosch Sensortec GmbH
*
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
diff --git a/include/driver/bme280_defs.h b/include/driver/bme280_defs.h
index 4e897e1..e224803 100644
--- a/include/driver/bme280_defs.h
+++ b/include/driver/bme280_defs.h
@@ -1,6 +1,8 @@
/**
* Copyright (C) 2018 - 2019 Bosch Sensortec GmbH
*
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
diff --git a/include/driver/bme680.h b/include/driver/bme680.h
index acf6059..054cf13 100644
--- a/include/driver/bme680.h
+++ b/include/driver/bme680.h
@@ -1,6 +1,8 @@
/**
* Copyright (C) 2017 - 2018 Bosch Sensortec GmbH
*
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
diff --git a/include/driver/bme680_defs.h b/include/driver/bme680_defs.h
index ed44899..6ee5d43 100644
--- a/include/driver/bme680_defs.h
+++ b/include/driver/bme680_defs.h
@@ -1,6 +1,8 @@
/**
* Copyright (C) 2017 - 2018 Bosch Sensortec GmbH
*
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
diff --git a/include/driver/bme680_util.h b/include/driver/bme680_util.h
index c56983b..cf7b5a1 100644
--- a/include/driver/bme680_util.h
+++ b/include/driver/bme680_util.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include <stdint.h>
void bme680_delay_ms(uint32_t const period);
diff --git a/include/driver/ccs811.h b/include/driver/ccs811.h
index 27d7e41..aab1e35 100644
--- a/include/driver/ccs811.h
+++ b/include/driver/ccs811.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef CCS811_H
#define CCS811_H
diff --git a/include/driver/eeprom24lc64.h b/include/driver/eeprom24lc64.h
index 66e7666..3be9d14 100644
--- a/include/driver/eeprom24lc64.h
+++ b/include/driver/eeprom24lc64.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef EEPROM24LC64_H
#define EEPROM24LC64_H
diff --git a/include/driver/hdc1080.h b/include/driver/hdc1080.h
index 6a510a0..83a99cb 100644
--- a/include/driver/hdc1080.h
+++ b/include/driver/hdc1080.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef HDC1080_H
#define HDC1080_H
diff --git a/include/driver/lm75.h b/include/driver/lm75.h
index 693578a..357be71 100644
--- a/include/driver/lm75.h
+++ b/include/driver/lm75.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef LM75_H
#define LM75_H
diff --git a/include/driver/max44009.h b/include/driver/max44009.h
index 6bedd3c..cca142f 100644
--- a/include/driver/max44009.h
+++ b/include/driver/max44009.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef MAX44009_H
#define MAX44009_H
diff --git a/include/driver/mmsimple.h b/include/driver/mmsimple.h
index 42b0f5d..8f2f1a6 100644
--- a/include/driver/mmsimple.h
+++ b/include/driver/mmsimple.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef MMSIMPLE_H
#define MMSIMPLE_H
diff --git a/include/driver/mmsubstate.h b/include/driver/mmsubstate.h
index 3338dbc..857d735 100644
--- a/include/driver/mmsubstate.h
+++ b/include/driver/mmsubstate.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef MMSUBSTATE_H
#define MMSUBSTATE_H
diff --git a/include/driver/mpu9250.h b/include/driver/mpu9250.h
index e106205..bc0a11f 100644
--- a/include/driver/mpu9250.h
+++ b/include/driver/mpu9250.h
@@ -5,6 +5,8 @@
Copyright (c) 2016 SparkFun Electronics, Inc.
Copyright (c) 2019 Daniel Friesel
+SPDX-License-Identifier: MIT
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
diff --git a/include/driver/nrf24l01.h b/include/driver/nrf24l01.h
index 3a1f145..b5470e9 100644
--- a/include/driver/nrf24l01.h
+++ b/include/driver/nrf24l01.h
@@ -1,3 +1,11 @@
+/*
+ * Based on https://github.com/nRF24/RF24
+ *
+ * Copyright (C) 2011 J. Coliz <maniacbug@ymail.com>
+ * Copyright (C) 2019 Daniel Friesel
+ *
+ * SPDX-License-Identifier: GPL-2.0-only
+ */
#ifndef NRF24L01_H
#define NRF24L01_H
diff --git a/include/driver/nrf24l01/registers.h b/include/driver/nrf24l01/registers.h
index 51ab310..f3c351a 100644
--- a/include/driver/nrf24l01/registers.h
+++ b/include/driver/nrf24l01/registers.h
@@ -1,6 +1,8 @@
/*
Copyright (c) 2007 Stefan Engelke <mbox@stefanengelke.de>
- Portions Copyright (C) 2011 Greg Copeland
+ Portions Copyright (C) 2011 Greg Copeland
+
+ SPDX-License-Identifier: MIT
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
diff --git a/include/driver/resistive_load.h b/include/driver/resistive_load.h
index 74725ac..2475148 100644
--- a/include/driver/resistive_load.h
+++ b/include/driver/resistive_load.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef RESISTIVE_LOAD_H
#define RESISTIVE_LOAD_H
diff --git a/include/driver/s5851a.h b/include/driver/s5851a.h
index 8acdeea..fd37158 100644
--- a/include/driver/s5851a.h
+++ b/include/driver/s5851a.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef S5851A_H
#define S5851A_H
diff --git a/include/driver/sharp96.h b/include/driver/sharp96.h
index cd99ad7..1106df1 100644
--- a/include/driver/sharp96.h
+++ b/include/driver/sharp96.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef SHARP96_H
#define SHARP96_H
diff --git a/include/driver/soft_i2c.h b/include/driver/soft_i2c.h
index 7960df2..05fbce6 100644
--- a/include/driver/soft_i2c.h
+++ b/include/driver/soft_i2c.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef SOFTI2C_H
#define SOFTI2C_H
diff --git a/include/object/outputstream.h b/include/object/outputstream.h
index c6b503f..97887e9 100644
--- a/include/object/outputstream.h
+++ b/include/object/outputstream.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef OUTPUTSTREAM_H
#define OUTPUTSTREAM_H
@@ -52,25 +57,18 @@ class OutputStream {
};
-// ENDL: new line character (and flush)
OutputStream & endl(OutputStream & os);
-// BIN: print numbers in binary form.
OutputStream & bin(OutputStream & os);
-// OCT: print numbers in octal form.
OutputStream & oct(OutputStream & os);
-// DEC: print numbers in decimal form.
OutputStream & dec(OutputStream & os);
-// HEX: print numbers in hexadecimal form.
OutputStream & hex(OutputStream & os);
-// FLUSH: flush OutputStream buffer
OutputStream & flush(OutputStream & os);
-// TERM: zero-termination
OutputStream & term(OutputStream & os);
#endif //OUTPUTSTREAM_H
diff --git a/include/object/ptalog.h b/include/object/ptalog.h
index 6394474..9d070ab 100644
--- a/include/object/ptalog.h
+++ b/include/object/ptalog.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef PTALOG_H
#define PTALOG_H
diff --git a/include/object/stdbuf.h b/include/object/stdbuf.h
index 271c3ea..3e669d9 100644
--- a/include/object/stdbuf.h
+++ b/include/object/stdbuf.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef STDBUF_H
#define STDBUF_H
diff --git a/include/object/xdr16input.h b/include/object/xdr16input.h
index 66b2c56..478be48 100644
--- a/include/object/xdr16input.h
+++ b/include/object/xdr16input.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef XDRINPUT_H
#define XDRINPUT_H
diff --git a/include/object/xdr16stream.h b/include/object/xdr16stream.h
index 7cec1b1..c53bea5 100644
--- a/include/object/xdr16stream.h
+++ b/include/object/xdr16stream.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef XDRSTREAM_H
#define XDRSTREAM_H
@@ -35,10 +40,8 @@ class XDRStream {
};
-// FLUSH: flush XDRStream buffer
XDRStream & flush(XDRStream & os);
-// TERM: zero-termination
XDRStream & term(XDRStream & os);
template<int TSize>
@@ -47,4 +50,4 @@ XDRStream & opaque(XDRStream & os);
XDRStream & fixed(XDRStream & os);
XDRStream & variable(XDRStream & os);
-#endif //OUTPUTSTREAM_H
+#endif
diff --git a/include/object/xdrinput.h b/include/object/xdrinput.h
index 5f99169..b3f999e 100644
--- a/include/object/xdrinput.h
+++ b/include/object/xdrinput.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef XDRINPUT_H
#define XDRINPUT_H
diff --git a/include/object/xdrstream.h b/include/object/xdrstream.h
index e8d4ddc..e2ccc34 100644
--- a/include/object/xdrstream.h
+++ b/include/object/xdrstream.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#ifndef XDRSTREAM_H
#define XDRSTREAM_H
@@ -35,10 +40,8 @@ class XDRStream {
};
-// FLUSH: flush XDRStream buffer
XDRStream & flush(XDRStream & os);
-// TERM: zero-termination
XDRStream & term(XDRStream & os);
template<int TSize>
@@ -47,4 +50,4 @@ XDRStream & opaque(XDRStream & os);
XDRStream & fixed(XDRStream & os);
XDRStream & variable(XDRStream & os);
-#endif //OUTPUTSTREAM_H
+#endif
diff --git a/make-elf b/make-elf
index a3d3182..c8c9bae 100755
--- a/make-elf
+++ b/make-elf
@@ -1,4 +1,8 @@
#!/bin/sh
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
set -e
diff --git a/mp b/mp
index 32c4cd5..60f98b5 100755
--- a/mp
+++ b/mp
@@ -1,4 +1,8 @@
#!/bin/sh
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
set -e
diff --git a/mpm b/mpm
index 4abd7df..48680a8 100755
--- a/mpm
+++ b/mpm
@@ -1,4 +1,8 @@
#!/bin/sh
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
set -e
diff --git a/script/g++wrap b/script/g++wrap
index fd0e5d9..f9903ed 100755
--- a/script/g++wrap
+++ b/script/g++wrap
@@ -1,4 +1,9 @@
#!/bin/zsh
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
+
for i in {1..$#}; do
if [[ $argv[$i] == *_agxx_* && -f $argv[$i] ]]; then
diff --git a/script/mkconfig b/script/mkconfig
index c11a819..4cb5666 100755
--- a/script/mkconfig
+++ b/script/mkconfig
@@ -1,4 +1,8 @@
#!/bin/sh
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
cat <<EOF
diff --git a/script/randconfig b/script/randconfig
index 21b6840..7a4ec82 100755
--- a/script/randconfig
+++ b/script/randconfig
@@ -1,4 +1,8 @@
#!/bin/sh
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
# randconfig occasionally generates invalid configs which lack an application.
# Try generating a valid config up to ten times.
diff --git a/script/size.py b/script/size.py
index e553314..48888cb 100755
--- a/script/size.py
+++ b/script/size.py
@@ -1,4 +1,8 @@
#!/usr/bin/env python3
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
import json
import re
diff --git a/script/static-stack-analyze.pl b/script/static-stack-analyze.pl
index 3089d3d..003be15 100755
--- a/script/static-stack-analyze.pl
+++ b/script/static-stack-analyze.pl
@@ -1,4 +1,8 @@
#!/usr/bin/env perl
+#
+# Copyright 2018 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
use strict;
use warnings;
@@ -263,41 +267,3 @@ for my $function (reverse sort { ($call_graph{$a}{max_cost} <=> $call_graph{$b}{
$call_graph{$function}{max_depth});
}
}
-
-__END__
-
-=head1 NAME
-
-=head1 SYNOPSIS
-
-=head1 VERSION
-
-=head1 DESCRIPTION
-
-=head1 OPTIONS
-
-=over
-
-=back
-
-=head1 EXIT STATUS
-
-=head1 CONFIGURATION
-
-None.
-
-=head1 DEPENDENCIES
-
-=over
-
-=back
-
-=head1 BUGS AND LIMITATIONS
-
-=head1 AUTHOR
-
-Copyright (C) 2018 by Daniel Friesel E<lt>derf@finalrewind.orgE<gt>
-
-=head1 LICENSE
-
- 0. You just DO WHAT THE FUCK YOU WANT TO.
diff --git a/src/app/aemr/Makefile.inc b/src/app/aemr/Makefile.inc
index 7ed7630..b200e46 100644
--- a/src/app/aemr/Makefile.inc
+++ b/src/app/aemr/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override arch_drivers += ,counter
endif
diff --git a/src/app/blinkencat3/Kconfig b/src/app/blinkencat3/Kconfig
index 3545f90..b00231a 100644
--- a/src/app/blinkencat3/Kconfig
+++ b/src/app/blinkencat3/Kconfig
@@ -1,2 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
prompt "Blinkencat 3"
depends on arch_arduino_nano && meta_driver_neopixel && !loop && !wakeup
diff --git a/src/app/blinkencat3/Makefile.inc b/src/app/blinkencat3/Makefile.inc
index 2d2d859..4d82280 100644
--- a/src/app/blinkencat3/Makefile.inc
+++ b/src/app/blinkencat3/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override loop = 1
override arch_drivers += ,neopixel
diff --git a/src/app/blinkencat3/main.cc b/src/app/blinkencat3/main.cc
index f543bf1..72622c5 100644
--- a/src/app/blinkencat3/main.cc
+++ b/src/app/blinkencat3/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/neopixel.h"
#include "driver/stdout.h"
diff --git a/src/app/button-and-motion-logger/Kconfig b/src/app/button-and-motion-logger/Kconfig
index 7cc7356..9bc0320 100644
--- a/src/app/button-and-motion-logger/Kconfig
+++ b/src/app/button-and-motion-logger/Kconfig
@@ -1,2 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
prompt "Button and Motion Logger"
depends on arch_arduino_nano && meta_driver_adc && driver_mpu9250 && !loop && !wakeup
diff --git a/src/app/button-and-motion-logger/Makefile.inc b/src/app/button-and-motion-logger/Makefile.inc
index eff5706..f783342 100644
--- a/src/app/button-and-motion-logger/Makefile.inc
+++ b/src/app/button-and-motion-logger/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override arch_drivers += ,adc,i2c
override drivers += ,mpu9250
diff --git a/src/app/button-and-motion-logger/client.py b/src/app/button-and-motion-logger/client.py
index 1a72929..8d7317f 100755
--- a/src/app/button-and-motion-logger/client.py
+++ b/src/app/button-and-motion-logger/client.py
@@ -1,4 +1,8 @@
#!/usr/bin/env python3
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
import numpy as np
import paho.mqtt.client as mqtt
diff --git a/src/app/button-and-motion-logger/main.cc b/src/app/button-and-motion-logger/main.cc
index 5b411a5..99172bf 100644
--- a/src/app/button-and-motion-logger/main.cc
+++ b/src/app/button-and-motion-logger/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/ccs811test/Makefile.inc b/src/app/ccs811test/Makefile.inc
index 6bc097a..3e53dfa 100644
--- a/src/app/ccs811test/Makefile.inc
+++ b/src/app/ccs811test/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override arch_drivers += ,i2c
override drivers += ,ccs811
diff --git a/src/app/ccs811test/main.cc b/src/app/ccs811test/main.cc
index a1052f6..bd53999 100644
--- a/src/app/ccs811test/main.cc
+++ b/src/app/ccs811test/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/countertest/Kconfig b/src/app/countertest/Kconfig
index 141c3f6..9f2cf5e 100644
--- a/src/app/countertest/Kconfig
+++ b/src/app/countertest/Kconfig
@@ -1,2 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
prompt "Cycle Counter Test"
depends on meta_driver_counter && loop && !wakeup
diff --git a/src/app/countertest/Makefile.inc b/src/app/countertest/Makefile.inc
index 0bf380e..a75805d 100644
--- a/src/app/countertest/Makefile.inc
+++ b/src/app/countertest/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override loop = 1
override arch_drivers += ,counter
diff --git a/src/app/countertest/main.cc b/src/app/countertest/main.cc
index ad560e5..cf3a136 100644
--- a/src/app/countertest/main.cc
+++ b/src/app/countertest/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/donothing/Kconfig b/src/app/donothing/Kconfig
index 900c0fd..7cfb671 100644
--- a/src/app/donothing/Kconfig
+++ b/src/app/donothing/Kconfig
@@ -1,2 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
prompt "Do Nothing"
depends on !loop && !wakeup
diff --git a/src/app/donothing/Makefile.inc b/src/app/donothing/Makefile.inc
index bf22978..b8ed566 100644
--- a/src/app/donothing/Makefile.inc
+++ b/src/app/donothing/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override timer_s = 0
override loop = 0
diff --git a/src/app/donothing/main.cc b/src/app/donothing/main.cc
index 242de6f..bb71853 100644
--- a/src/app/donothing/main.cc
+++ b/src/app/donothing/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/energybench/Kconfig b/src/app/energybench/Kconfig
index 428d33f..4f01baf 100644
--- a/src/app/energybench/Kconfig
+++ b/src/app/energybench/Kconfig
@@ -1,2 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
prompt "Energy Consumption Benchmark"
depends on arch_msp430fr5994lp && !loop && !wakeup
diff --git a/src/app/energybench/Makefile.inc b/src/app/energybench/Makefile.inc
index e69de29..1018151 100644
--- a/src/app/energybench/Makefile.inc
+++ b/src/app/energybench/Makefile.inc
@@ -0,0 +1,7 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
+
diff --git a/src/app/energybench/main.cc b/src/app/energybench/main.cc
index 27371b8..a585639 100644
--- a/src/app/energybench/main.cc
+++ b/src/app/energybench/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/i2cbench/Makefile.inc b/src/app/i2cbench/Makefile.inc
index c5241fd..279251e 100644
--- a/src/app/i2cbench/Makefile.inc
+++ b/src/app/i2cbench/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override arch_drivers += ,i2c
endif
diff --git a/src/app/i2cbench/main.cc b/src/app/i2cbench/main.cc
index 9058e0e..ba24bc3 100644
--- a/src/app/i2cbench/main.cc
+++ b/src/app/i2cbench/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/i2cdetect/Kconfig b/src/app/i2cdetect/Kconfig
index 1ebeaeb..fe4de80 100644
--- a/src/app/i2cdetect/Kconfig
+++ b/src/app/i2cdetect/Kconfig
@@ -1,2 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
prompt "I2C Bus Scanner"
depends on loop && !wakeup && meta_driver_i2c
diff --git a/src/app/i2cdetect/Makefile.inc b/src/app/i2cdetect/Makefile.inc
index c76489c..eaf91d6 100644
--- a/src/app/i2cdetect/Makefile.inc
+++ b/src/app/i2cdetect/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override loop = 1
override arch_drivers += ,i2c
diff --git a/src/app/i2cdetect/main.cc b/src/app/i2cdetect/main.cc
index bb936cf..4d6ebe9 100644
--- a/src/app/i2cdetect/main.cc
+++ b/src/app/i2cdetect/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/ledblink/Kconfig b/src/app/ledblink/Kconfig
index 0075bf8..3f03899 100644
--- a/src/app/ledblink/Kconfig
+++ b/src/app/ledblink/Kconfig
@@ -1,2 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
prompt "LED Blink"
depends on loop && !wakeup
diff --git a/src/app/ledblink/Makefile.inc b/src/app/ledblink/Makefile.inc
index ec71d40..c0417b6 100644
--- a/src/app/ledblink/Makefile.inc
+++ b/src/app/ledblink/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override loop = 1
endif
diff --git a/src/app/ledblink/main.cc b/src/app/ledblink/main.cc
index d0f9c35..1bec435 100644
--- a/src/app/ledblink/main.cc
+++ b/src/app/ledblink/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/loratest/Kconfig b/src/app/loratest/Kconfig
index 95c7489..cc5ede8 100644
--- a/src/app/loratest/Kconfig
+++ b/src/app/loratest/Kconfig
@@ -1,2 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
prompt "LoRaWAN test"
depends on arch_msp430fr5994lp && !meta_driver_stdin && loop && !wakeup
diff --git a/src/app/loratest/Makefile.inc b/src/app/loratest/Makefile.inc
index ec71d40..c0417b6 100644
--- a/src/app/loratest/Makefile.inc
+++ b/src/app/loratest/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override loop = 1
endif
diff --git a/src/app/loratest/main.cc b/src/app/loratest/main.cc
index 5b03425..1e914f5 100644
--- a/src/app/loratest/main.cc
+++ b/src/app/loratest/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/luxlog/Kconfig b/src/app/luxlog/Kconfig
index 52c71ea..6052edb 100644
--- a/src/app/luxlog/Kconfig
+++ b/src/app/luxlog/Kconfig
@@ -1,2 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
prompt "Ambient Brightness Logger"
depends on (arch_msp430fr5969lp || arch_msp430fr5994lp) && driver_max44009 && loop && !wakeup
diff --git a/src/app/luxlog/Makefile.inc b/src/app/luxlog/Makefile.inc
index a0cbcd8..13b9ac9 100644
--- a/src/app/luxlog/Makefile.inc
+++ b/src/app/luxlog/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override loop = 1
override arch_drivers += ,i2c
diff --git a/src/app/luxlog/main.cc b/src/app/luxlog/main.cc
index c7680ac..ebaecfb 100644
--- a/src/app/luxlog/main.cc
+++ b/src/app/luxlog/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/mpu9250_motionlog/Kconfig b/src/app/mpu9250_motionlog/Kconfig
index 1ffd172..b2bd7e0 100644
--- a/src/app/mpu9250_motionlog/Kconfig
+++ b/src/app/mpu9250_motionlog/Kconfig
@@ -1,2 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
prompt "Motion Logger"
depends on arch_arduino_nano && driver_mpu9250 && !loop && !wakeup
diff --git a/src/app/mpu9250_motionlog/Makefile.inc b/src/app/mpu9250_motionlog/Makefile.inc
index ed959ca..cade3de 100644
--- a/src/app/mpu9250_motionlog/Makefile.inc
+++ b/src/app/mpu9250_motionlog/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override arch_drivers += ,i2c
override drivers += ,mpu9250
diff --git a/src/app/mpu9250_motionlog/main.cc b/src/app/mpu9250_motionlog/main.cc
index 18bd895..7b47f71 100644
--- a/src/app/mpu9250_motionlog/main.cc
+++ b/src/app/mpu9250_motionlog/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/nrf24l01test/Makefile.inc b/src/app/nrf24l01test/Makefile.inc
index f84bcbd..428244a 100644
--- a/src/app/nrf24l01test/Makefile.inc
+++ b/src/app/nrf24l01test/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override loop = 1
override timer_s = 1
diff --git a/src/app/nrf24l01test/main.cc b/src/app/nrf24l01test/main.cc
index 3c8b785..789cb96 100644
--- a/src/app/nrf24l01test/main.cc
+++ b/src/app/nrf24l01test/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/sharp96test/Kconfig b/src/app/sharp96test/Kconfig
index cbba858..ad2e33a 100644
--- a/src/app/sharp96test/Kconfig
+++ b/src/app/sharp96test/Kconfig
@@ -1,2 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
prompt "Sharp96 Test"
depends on driver_sharp96 && loop && !wakeup
diff --git a/src/app/sharp96test/Makefile.inc b/src/app/sharp96test/Makefile.inc
index a63136a..8cd8a11 100644
--- a/src/app/sharp96test/Makefile.inc
+++ b/src/app/sharp96test/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override loop = 1
override arch_drivers += spi
diff --git a/src/app/sharp96test/main.cc b/src/app/sharp96test/main.cc
index 38a8a3d..29a1198 100644
--- a/src/app/sharp96test/main.cc
+++ b/src/app/sharp96test/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/shell/Kconfig b/src/app/shell/Kconfig
index a4626d6..d176020 100644
--- a/src/app/shell/Kconfig
+++ b/src/app/shell/Kconfig
@@ -1,2 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
prompt "Shell / UART Echo"
depends on meta_driver_stdin && wakeup
diff --git a/src/app/shell/Makefile.inc b/src/app/shell/Makefile.inc
index 3d73351..83986cd 100644
--- a/src/app/shell/Makefile.inc
+++ b/src/app/shell/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override loop = 0
override wakeup = 1
diff --git a/src/app/shell/main.cc b/src/app/shell/main.cc
index 0a7d4ca..47bee68 100644
--- a/src/app/shell/main.cc
+++ b/src/app/shell/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/sysinfo/Makefile.inc b/src/app/sysinfo/Makefile.inc
index ec71d40..c0417b6 100644
--- a/src/app/sysinfo/Makefile.inc
+++ b/src/app/sysinfo/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override loop = 1
endif
diff --git a/src/app/sysinfo/main.cc b/src/app/sysinfo/main.cc
index a2e2660..0146e67 100644
--- a/src/app/sysinfo/main.cc
+++ b/src/app/sysinfo/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/test_basic/Makefile.inc b/src/app/test_basic/Makefile.inc
index e69de29..1018151 100644
--- a/src/app/test_basic/Makefile.inc
+++ b/src/app/test_basic/Makefile.inc
@@ -0,0 +1,7 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
+
diff --git a/src/app/test_basic/main.cc b/src/app/test_basic/main.cc
index 4ac5067..e4a7782 100644
--- a/src/app/test_basic/main.cc
+++ b/src/app/test_basic/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/timertest/Makefile.inc b/src/app/timertest/Makefile.inc
index 9754020..d00b239 100644
--- a/src/app/timertest/Makefile.inc
+++ b/src/app/timertest/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override loop = 1
override timer_s = 1
diff --git a/src/app/timertest/main.cc b/src/app/timertest/main.cc
index 23f0b60..f33d014 100644
--- a/src/app/timertest/main.cc
+++ b/src/app/timertest/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/transactiontest/Kconfig b/src/app/transactiontest/Kconfig
index bb4c20a..d47d1ad 100644
--- a/src/app/transactiontest/Kconfig
+++ b/src/app/transactiontest/Kconfig
@@ -1,2 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
prompt "Transaction Test"
depends on loop && !wakeup && driver_sharp96 && meta_driver_spi
diff --git a/src/app/transactiontest/Makefile.inc b/src/app/transactiontest/Makefile.inc
index 25d4378..6d5b4f1 100644
--- a/src/app/transactiontest/Makefile.inc
+++ b/src/app/transactiontest/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override loop = 1
override timer_s = 1
diff --git a/src/app/transactiontest/main.cc b/src/app/transactiontest/main.cc
index 12d995f..0b104e3 100644
--- a/src/app/transactiontest/main.cc
+++ b/src/app/transactiontest/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/transactiontest/util.S b/src/app/transactiontest/util.S
index ea298b6..9d1bd19 100644
--- a/src/app/transactiontest/util.S
+++ b/src/app/transactiontest/util.S
@@ -1,3 +1,9 @@
+;
+; Copyright 2020 Daniel Friesel
+;
+; SPDX-License-Identifier: BSD-2-Clause
+;
+
.global asm_save_all
.global asm_load_all
.global asm_load_mem
diff --git a/src/app/waittest/Makefile.inc b/src/app/waittest/Makefile.inc
index 9754020..d00b239 100644
--- a/src/app/waittest/Makefile.inc
+++ b/src/app/waittest/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override loop = 1
override timer_s = 1
diff --git a/src/app/waittest/main.cc b/src/app/waittest/main.cc
index f6aaea8..7a01ca3 100644
--- a/src/app/waittest/main.cc
+++ b/src/app/waittest/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/wetterstation/Kconfig b/src/app/wetterstation/Kconfig
index e0e28e7..d09f76a 100644
--- a/src/app/wetterstation/Kconfig
+++ b/src/app/wetterstation/Kconfig
@@ -1,2 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
prompt "Wetterstation"
depends on meta_driver_adc && arch_arduino_nano && loop && !wakeup
diff --git a/src/app/wetterstation/Makefile.inc b/src/app/wetterstation/Makefile.inc
index ec71d40..c0417b6 100644
--- a/src/app/wetterstation/Makefile.inc
+++ b/src/app/wetterstation/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override loop = 1
endif
diff --git a/src/app/wetterstation/client.py b/src/app/wetterstation/client.py
index 5bc2afc..73369b6 100755
--- a/src/app/wetterstation/client.py
+++ b/src/app/wetterstation/client.py
@@ -1,4 +1,8 @@
#!/usr/bin/env python3
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
import numpy as np
import re
diff --git a/src/app/wetterstation/main.cc b/src/app/wetterstation/main.cc
index 730f47e..6907eac 100644
--- a/src/app/wetterstation/main.cc
+++ b/src/app/wetterstation/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
diff --git a/src/app/ws2812b_dmap/Kconfig b/src/app/ws2812b_dmap/Kconfig
index d30da90..8f7c84a 100644
--- a/src/app/ws2812b_dmap/Kconfig
+++ b/src/app/ws2812b_dmap/Kconfig
@@ -1,2 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
prompt "dmap WS2812b"
depends on arch_arduino_nano && meta_driver_neopixel && meta_driver_stdin
diff --git a/src/app/ws2812b_dmap/Makefile.inc b/src/app/ws2812b_dmap/Makefile.inc
index a515d32..18bc352 100644
--- a/src/app/ws2812b_dmap/Makefile.inc
+++ b/src/app/ws2812b_dmap/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override loop = 1
override arch_drivers += ,stdin,neopixel
diff --git a/src/app/ws2812b_dmap/main.cc b/src/app/ws2812b_dmap/main.cc
index 6535dda..16dbf60 100644
--- a/src/app/ws2812b_dmap/main.cc
+++ b/src/app/ws2812b_dmap/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/neopixel.h"
#include "driver/stdin.h"
diff --git a/src/app/ws2812b_uart/Kconfig b/src/app/ws2812b_uart/Kconfig
index 5267de5..d92c8c9 100644
--- a/src/app/ws2812b_uart/Kconfig
+++ b/src/app/ws2812b_uart/Kconfig
@@ -1,2 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
prompt "UART to WS2812b"
depends on arch_arduino_nano && meta_driver_neopixel && meta_driver_stdin
diff --git a/src/app/ws2812b_uart/Makefile.inc b/src/app/ws2812b_uart/Makefile.inc
index a515d32..18bc352 100644
--- a/src/app/ws2812b_uart/Makefile.inc
+++ b/src/app/ws2812b_uart/Makefile.inc
@@ -1,3 +1,9 @@
+# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
ifdef app
override loop = 1
override arch_drivers += ,stdin,neopixel
diff --git a/src/app/ws2812b_uart/main.cc b/src/app/ws2812b_uart/main.cc
index 791e67a..97fb1e4 100644
--- a/src/app/ws2812b_uart/main.cc
+++ b/src/app/ws2812b_uart/main.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/neopixel.h"
#include "driver/stdin.h"
diff --git a/src/arch/arduino-nano/Kconfig b/src/arch/arduino-nano/Kconfig
index 8fc89cc..071c18a 100644
--- a/src/arch/arduino-nano/Kconfig
+++ b/src/arch/arduino-nano/Kconfig
@@ -1,3 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
config arch_arduino_nano_driver_adc
bool "ADC (Analog-Digital-Converter)"
select meta_driver_adc
diff --git a/src/arch/arduino-nano/Makefile.inc b/src/arch/arduino-nano/Makefile.inc
index acc8544..e524027 100644
--- a/src/arch/arduino-nano/Makefile.inc
+++ b/src/arch/arduino-nano/Makefile.inc
@@ -1,4 +1,8 @@
# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
MCU = atmega328p
SERIAL_PORT ?= /dev/ttyUSB0
diff --git a/src/arch/arduino-nano/arch.cc b/src/arch/arduino-nano/arch.cc
index 48b50f8..8ff93ee 100644
--- a/src/arch/arduino-nano/arch.cc
+++ b/src/arch/arduino-nano/arch.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include <avr/io.h>
#include <avr/interrupt.h>
diff --git a/src/arch/arduino-nano/driver/adc.cc b/src/arch/arduino-nano/driver/adc.cc
index 1583b15..17cfc27 100644
--- a/src/arch/arduino-nano/driver/adc.cc
+++ b/src/arch/arduino-nano/driver/adc.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include <avr/io.h>
#include "arch.h"
diff --git a/src/arch/arduino-nano/driver/counter.cc b/src/arch/arduino-nano/driver/counter.cc
index 2529b0e..0c9f8a4 100644
--- a/src/arch/arduino-nano/driver/counter.cc
+++ b/src/arch/arduino-nano/driver/counter.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/counter.h"
#if defined(TIMER_S) || defined(WITH_LOOP)
diff --git a/src/arch/arduino-nano/driver/gpio.cc b/src/arch/arduino-nano/driver/gpio.cc
index edfc2d0..734d678 100644
--- a/src/arch/arduino-nano/driver/gpio.cc
+++ b/src/arch/arduino-nano/driver/gpio.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/gpio.h"
#include <avr/io.h>
#include <avr/interrupt.h>
diff --git a/src/arch/arduino-nano/driver/i2c.cc b/src/arch/arduino-nano/driver/i2c.cc
index 0a2f595..dbfb33b 100644
--- a/src/arch/arduino-nano/driver/i2c.cc
+++ b/src/arch/arduino-nano/driver/i2c.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/i2c.h"
#include "arch.h"
#include <avr/io.h>
diff --git a/src/arch/arduino-nano/driver/neopixel.cc b/src/arch/arduino-nano/driver/neopixel.cc
index 458bae0..abdd02f 100644
--- a/src/arch/arduino-nano/driver/neopixel.cc
+++ b/src/arch/arduino-nano/driver/neopixel.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2019 Adafruit Industries
+ *
+ * SPDX-License-Identifier: LGPL-3.0-or-later
+ */
/*!
* @file Adafruit_NeoPixel.cpp
*
diff --git a/src/arch/arduino-nano/driver/spi.cc b/src/arch/arduino-nano/driver/spi.cc
index 86aa311..2ba93cb 100644
--- a/src/arch/arduino-nano/driver/spi.cc
+++ b/src/arch/arduino-nano/driver/spi.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/spi.h"
#include "driver/gpio.h"
#include "arch.h"
diff --git a/src/arch/arduino-nano/driver/stdin.cc b/src/arch/arduino-nano/driver/stdin.cc
index ac58a61..fe90d0c 100644
--- a/src/arch/arduino-nano/driver/stdin.cc
+++ b/src/arch/arduino-nano/driver/stdin.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/stdin.h"
#include <avr/io.h>
#include <avr/interrupt.h>
diff --git a/src/arch/arduino-nano/driver/stdout.cc b/src/arch/arduino-nano/driver/stdout.cc
index 58ff440..f6c39b3 100644
--- a/src/arch/arduino-nano/driver/stdout.cc
+++ b/src/arch/arduino-nano/driver/stdout.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/stdout.h"
#include <avr/io.h>
#include <avr/interrupt.h>
diff --git a/src/arch/arduino-nano/driver/timer.cc b/src/arch/arduino-nano/driver/timer.cc
index 4f2d6d1..a54b5c6 100644
--- a/src/arch/arduino-nano/driver/timer.cc
+++ b/src/arch/arduino-nano/driver/timer.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/timer.h"
Timer timer;
diff --git a/src/arch/arduino-nano/driver/uptime.cc b/src/arch/arduino-nano/driver/uptime.cc
index 388edb6..621ec91 100644
--- a/src/arch/arduino-nano/driver/uptime.cc
+++ b/src/arch/arduino-nano/driver/uptime.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/uptime.h"
Uptime uptime;
diff --git a/src/arch/blinkenrocket/Kconfig b/src/arch/blinkenrocket/Kconfig
index c547493..ead54f9 100644
--- a/src/arch/blinkenrocket/Kconfig
+++ b/src/arch/blinkenrocket/Kconfig
@@ -1,3 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
config arch_blinkenrocket_driver_i2c
bool "I2C"
depends on !driver_softi2c
diff --git a/src/arch/blinkenrocket/Makefile.inc b/src/arch/blinkenrocket/Makefile.inc
index 09736dd..41e1de3 100644
--- a/src/arch/blinkenrocket/Makefile.inc
+++ b/src/arch/blinkenrocket/Makefile.inc
@@ -1,4 +1,8 @@
# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
MCU = attiny88
SERIAL_PORT ?= /dev/ttyUSB0
diff --git a/src/arch/blinkenrocket/arch.cc b/src/arch/blinkenrocket/arch.cc
index ffe68a0..ed55d5d 100644
--- a/src/arch/blinkenrocket/arch.cc
+++ b/src/arch/blinkenrocket/arch.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include <avr/io.h>
#include <avr/interrupt.h>
diff --git a/src/arch/blinkenrocket/driver/gpio.cc b/src/arch/blinkenrocket/driver/gpio.cc
index 707f2bd..693edce 100644
--- a/src/arch/blinkenrocket/driver/gpio.cc
+++ b/src/arch/blinkenrocket/driver/gpio.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/gpio.h"
#include <avr/io.h>
#include <avr/interrupt.h>
diff --git a/src/arch/blinkenrocket/driver/i2c.cc b/src/arch/blinkenrocket/driver/i2c.cc
index df275ff..75169db 100644
--- a/src/arch/blinkenrocket/driver/i2c.cc
+++ b/src/arch/blinkenrocket/driver/i2c.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/i2c.h"
#include "arch.h"
#include <avr/io.h>
diff --git a/src/arch/blinkenrocket/driver/stdout.cc b/src/arch/blinkenrocket/driver/stdout.cc
index 195ba96..a7c0a3f 100644
--- a/src/arch/blinkenrocket/driver/stdout.cc
+++ b/src/arch/blinkenrocket/driver/stdout.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/stdout.h"
#include <avr/io.h>
#include <avr/interrupt.h>
diff --git a/src/arch/blinkenrocket/driver/uptime.cc b/src/arch/blinkenrocket/driver/uptime.cc
index 388edb6..621ec91 100644
--- a/src/arch/blinkenrocket/driver/uptime.cc
+++ b/src/arch/blinkenrocket/driver/uptime.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/uptime.h"
Uptime uptime;
diff --git a/src/arch/esp8266/Kconfig b/src/arch/esp8266/Kconfig
index 5542dd5..5c2137c 100644
--- a/src/arch/esp8266/Kconfig
+++ b/src/arch/esp8266/Kconfig
@@ -1,3 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
config arch_esp8266_driver_counter
bool "Cycle Counter"
select meta_driver_counter
diff --git a/src/arch/esp8266/Makefile.inc b/src/arch/esp8266/Makefile.inc
index 1b82d31..6a0e476 100644
--- a/src/arch/esp8266/Makefile.inc
+++ b/src/arch/esp8266/Makefile.inc
@@ -1,4 +1,8 @@
# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
TOOLCHAIN_BASE ?= /home/derf/var/projects/esp8266/toolchain/xtensa-lx106-elf/bin
SDK_BASE ?= /home/derf/var/projects/esp8266/toolchain/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr
diff --git a/src/arch/esp8266/arch.cc b/src/arch/esp8266/arch.cc
index 34151d2..1d63e67 100644
--- a/src/arch/esp8266/arch.cc
+++ b/src/arch/esp8266/arch.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
extern "C" {
diff --git a/src/arch/esp8266/driver/counter.cc b/src/arch/esp8266/driver/counter.cc
index 17a0f95..dd6196a 100644
--- a/src/arch/esp8266/driver/counter.cc
+++ b/src/arch/esp8266/driver/counter.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/counter.h"
Counter counter;
diff --git a/src/arch/esp8266/driver/gpio.cc b/src/arch/esp8266/driver/gpio.cc
index dba22b0..d6c92a4 100644
--- a/src/arch/esp8266/driver/gpio.cc
+++ b/src/arch/esp8266/driver/gpio.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/gpio.h"
extern "C" {
#include "osapi.h"
diff --git a/src/arch/esp8266/driver/stdin.cc b/src/arch/esp8266/driver/stdin.cc
index 7c7d2a7..bbb3be0 100644
--- a/src/arch/esp8266/driver/stdin.cc
+++ b/src/arch/esp8266/driver/stdin.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/stdin.h"
#include "driver/gpio.h"
extern "C" {
diff --git a/src/arch/esp8266/driver/stdout.cc b/src/arch/esp8266/driver/stdout.cc
index c4f0abc..09a893f 100644
--- a/src/arch/esp8266/driver/stdout.cc
+++ b/src/arch/esp8266/driver/stdout.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/stdout.h"
extern "C" {
#include "osapi.h"
@@ -197,14 +202,12 @@ ICACHE_FLASH_ATTR void StandardOutput::printf_float(float num)
put('0' + ((int)(num * 100) % 10));
}
-// FLUSH
StandardOutput & flush(StandardOutput & os)
{
os.flush();
return os;
}
-// ENDL: fuegt einen Zeilenumbruch in die Ausgabe ein.
StandardOutput & endl(StandardOutput & os)
{
os.put('\n');
@@ -212,35 +215,30 @@ StandardOutput & endl(StandardOutput & os)
return os;
}
-// BIN: print numbers in binary form
StandardOutput & bin(StandardOutput & os)
{
os.setBase(2);
return os;
}
-// OCT: print numbers in octal form.
StandardOutput & oct(StandardOutput & os)
{
os.setBase(8);
return os;
}
-// DEC: print numbers in decimal form.
StandardOutput & dec(StandardOutput & os)
{
os.setBase(10);
return os;
}
-// HEX: print numbers in hexadecimal form.
StandardOutput & hex(StandardOutput & os)
{
os.setBase(16);
return os;
}
-// TERM: null-termination
StandardOutput & term(StandardOutput & os)
{
os.put('\0');
diff --git a/src/arch/esp8266/driver/uptime.cc b/src/arch/esp8266/driver/uptime.cc
index 388edb6..621ec91 100644
--- a/src/arch/esp8266/driver/uptime.cc
+++ b/src/arch/esp8266/driver/uptime.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/uptime.h"
Uptime uptime;
diff --git a/src/arch/msp430fr5969lp/Kconfig b/src/arch/msp430fr5969lp/Kconfig
index 6b085ae..70fb3e4 100644
--- a/src/arch/msp430fr5969lp/Kconfig
+++ b/src/arch/msp430fr5969lp/Kconfig
@@ -1,3 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
config arch_msp430fr5969lp_driver_adc
bool "ADC (Analog-Digital-Converter)"
select meta_driver_adc
diff --git a/src/arch/msp430fr5969lp/Makefile.inc b/src/arch/msp430fr5969lp/Makefile.inc
index 81cd55b..f9d9a28 100644
--- a/src/arch/msp430fr5969lp/Makefile.inc
+++ b/src/arch/msp430fr5969lp/Makefile.inc
@@ -1,4 +1,8 @@
# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
CPU = 430x
MCU = msp430fr5969
diff --git a/src/arch/msp430fr5969lp/arch.cc b/src/arch/msp430fr5969lp/arch.cc
index 5385d16..df27f33 100644
--- a/src/arch/msp430fr5969lp/arch.cc
+++ b/src/arch/msp430fr5969lp/arch.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include <msp430.h>
diff --git a/src/arch/msp430fr5969lp/driver/adc.cc b/src/arch/msp430fr5969lp/driver/adc.cc
index 5a044a6..e5b3c27 100644
--- a/src/arch/msp430fr5969lp/driver/adc.cc
+++ b/src/arch/msp430fr5969lp/driver/adc.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/adc.h"
#include <msp430.h>
diff --git a/src/arch/msp430fr5969lp/driver/counter.cc b/src/arch/msp430fr5969lp/driver/counter.cc
index 741b543..854061e 100644
--- a/src/arch/msp430fr5969lp/driver/counter.cc
+++ b/src/arch/msp430fr5969lp/driver/counter.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/counter.h"
#include "driver/gpio.h"
diff --git a/src/arch/msp430fr5969lp/driver/gpio.cc b/src/arch/msp430fr5969lp/driver/gpio.cc
index 1403aed..148bcdb 100644
--- a/src/arch/msp430fr5969lp/driver/gpio.cc
+++ b/src/arch/msp430fr5969lp/driver/gpio.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/gpio.h"
GPIO gpio;
diff --git a/src/arch/msp430fr5969lp/driver/i2c.cc b/src/arch/msp430fr5969lp/driver/i2c.cc
index fe5b37b..a923f88 100644
--- a/src/arch/msp430fr5969lp/driver/i2c.cc
+++ b/src/arch/msp430fr5969lp/driver/i2c.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/i2c.h"
#include "arch.h"
#include <msp430.h>
diff --git a/src/arch/msp430fr5969lp/driver/spi.cc b/src/arch/msp430fr5969lp/driver/spi.cc
index f34a76b..4092e6e 100644
--- a/src/arch/msp430fr5969lp/driver/spi.cc
+++ b/src/arch/msp430fr5969lp/driver/spi.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/spi.h"
#include <msp430.h>
diff --git a/src/arch/msp430fr5969lp/driver/stdin.cc b/src/arch/msp430fr5969lp/driver/stdin.cc
index cc6e586..033349d 100644
--- a/src/arch/msp430fr5969lp/driver/stdin.cc
+++ b/src/arch/msp430fr5969lp/driver/stdin.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/stdin.h"
#include <msp430.h>
diff --git a/src/arch/msp430fr5969lp/driver/stdout.cc b/src/arch/msp430fr5969lp/driver/stdout.cc
index b3e8b4d..4b13515 100644
--- a/src/arch/msp430fr5969lp/driver/stdout.cc
+++ b/src/arch/msp430fr5969lp/driver/stdout.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/stdout.h"
#include <msp430.h>
diff --git a/src/arch/msp430fr5969lp/driver/timer.cc b/src/arch/msp430fr5969lp/driver/timer.cc
index 4f2d6d1..a54b5c6 100644
--- a/src/arch/msp430fr5969lp/driver/timer.cc
+++ b/src/arch/msp430fr5969lp/driver/timer.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/timer.h"
Timer timer;
diff --git a/src/arch/msp430fr5969lp/driver/uptime.cc b/src/arch/msp430fr5969lp/driver/uptime.cc
index 05154f9..29d1bfc 100644
--- a/src/arch/msp430fr5969lp/driver/uptime.cc
+++ b/src/arch/msp430fr5969lp/driver/uptime.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/uptime.h"
#include <msp430.h>
diff --git a/src/arch/msp430fr5969lp/model.py b/src/arch/msp430fr5969lp/model.py
index 4747b68..525ecb7 100755
--- a/src/arch/msp430fr5969lp/model.py
+++ b/src/arch/msp430fr5969lp/model.py
@@ -1,4 +1,8 @@
#!/usr/bin/env python3
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
import numpy as np
import sys
diff --git a/src/arch/msp430fr5994lp/Kconfig b/src/arch/msp430fr5994lp/Kconfig
index 60f0d6c..350f075 100644
--- a/src/arch/msp430fr5994lp/Kconfig
+++ b/src/arch/msp430fr5994lp/Kconfig
@@ -1,3 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
config arch_msp430fr5994lp_driver_adc
bool "ADC (Analog-Digital-Converter)"
select meta_driver_adc
diff --git a/src/arch/msp430fr5994lp/Makefile.inc b/src/arch/msp430fr5994lp/Makefile.inc
index f6ca67e..e7c652a 100644
--- a/src/arch/msp430fr5994lp/Makefile.inc
+++ b/src/arch/msp430fr5994lp/Makefile.inc
@@ -1,4 +1,8 @@
# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
CPU = 430x
MCU = msp430fr5994
diff --git a/src/arch/msp430fr5994lp/arch.cc b/src/arch/msp430fr5994lp/arch.cc
index b247da3..d3d99ae 100644
--- a/src/arch/msp430fr5994lp/arch.cc
+++ b/src/arch/msp430fr5994lp/arch.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include <msp430.h>
diff --git a/src/arch/msp430fr5994lp/driver/adc.cc b/src/arch/msp430fr5994lp/driver/adc.cc
index 5a044a6..e5b3c27 100644
--- a/src/arch/msp430fr5994lp/driver/adc.cc
+++ b/src/arch/msp430fr5994lp/driver/adc.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/adc.h"
#include <msp430.h>
diff --git a/src/arch/msp430fr5994lp/driver/counter.cc b/src/arch/msp430fr5994lp/driver/counter.cc
index d69d844..e93f97b 100644
--- a/src/arch/msp430fr5994lp/driver/counter.cc
+++ b/src/arch/msp430fr5994lp/driver/counter.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/counter.h"
Counter counter;
diff --git a/src/arch/msp430fr5994lp/driver/cpufreq.cc b/src/arch/msp430fr5994lp/driver/cpufreq.cc
index 55a74b5..b71dc57 100644
--- a/src/arch/msp430fr5994lp/driver/cpufreq.cc
+++ b/src/arch/msp430fr5994lp/driver/cpufreq.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
void CPUFreq::set(unsigned int freq_khz)
{
/*
diff --git a/src/arch/msp430fr5994lp/driver/gpio.cc b/src/arch/msp430fr5994lp/driver/gpio.cc
index 1403aed..148bcdb 100644
--- a/src/arch/msp430fr5994lp/driver/gpio.cc
+++ b/src/arch/msp430fr5994lp/driver/gpio.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/gpio.h"
GPIO gpio;
diff --git a/src/arch/msp430fr5994lp/driver/i2c.cc b/src/arch/msp430fr5994lp/driver/i2c.cc
index 57b4c30..589a68c 100644
--- a/src/arch/msp430fr5994lp/driver/i2c.cc
+++ b/src/arch/msp430fr5994lp/driver/i2c.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/i2c.h"
#include "arch.h"
#include <msp430.h>
diff --git a/src/arch/msp430fr5994lp/driver/spi.cc b/src/arch/msp430fr5994lp/driver/spi.cc
index 543987d..e1ad2ad 100644
--- a/src/arch/msp430fr5994lp/driver/spi.cc
+++ b/src/arch/msp430fr5994lp/driver/spi.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/spi.h"
#include <msp430.h>
diff --git a/src/arch/msp430fr5994lp/driver/spi_a1.cc b/src/arch/msp430fr5994lp/driver/spi_a1.cc
index 0dc32c8..58b604f 100644
--- a/src/arch/msp430fr5994lp/driver/spi_a1.cc
+++ b/src/arch/msp430fr5994lp/driver/spi_a1.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/spi_a1.h"
#include <msp430.h>
diff --git a/src/arch/msp430fr5994lp/driver/stdin.cc b/src/arch/msp430fr5994lp/driver/stdin.cc
index cc6e586..033349d 100644
--- a/src/arch/msp430fr5994lp/driver/stdin.cc
+++ b/src/arch/msp430fr5994lp/driver/stdin.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/stdin.h"
#include <msp430.h>
diff --git a/src/arch/msp430fr5994lp/driver/stdout.cc b/src/arch/msp430fr5994lp/driver/stdout.cc
index ccac54b..9bd196f 100644
--- a/src/arch/msp430fr5994lp/driver/stdout.cc
+++ b/src/arch/msp430fr5994lp/driver/stdout.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/stdout.h"
#include <msp430.h>
diff --git a/src/arch/msp430fr5994lp/driver/timed_resistive_load.cc b/src/arch/msp430fr5994lp/driver/timed_resistive_load.cc
index 2c46be2..09d6a84 100644
--- a/src/arch/msp430fr5994lp/driver/timed_resistive_load.cc
+++ b/src/arch/msp430fr5994lp/driver/timed_resistive_load.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/timed_resistive_load.h"
#include "driver/gpio.h"
#include "arch.h"
diff --git a/src/arch/msp430fr5994lp/driver/timer.cc b/src/arch/msp430fr5994lp/driver/timer.cc
index 4f2d6d1..a54b5c6 100644
--- a/src/arch/msp430fr5994lp/driver/timer.cc
+++ b/src/arch/msp430fr5994lp/driver/timer.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/timer.h"
Timer timer;
diff --git a/src/arch/msp430fr5994lp/driver/uptime.cc b/src/arch/msp430fr5994lp/driver/uptime.cc
index 05154f9..29d1bfc 100644
--- a/src/arch/msp430fr5994lp/driver/uptime.cc
+++ b/src/arch/msp430fr5994lp/driver/uptime.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/uptime.h"
#include <msp430.h>
diff --git a/src/arch/msp430fr5994lp/model.py b/src/arch/msp430fr5994lp/model.py
index 4747b68..525ecb7 100755
--- a/src/arch/msp430fr5994lp/model.py
+++ b/src/arch/msp430fr5994lp/model.py
@@ -1,4 +1,8 @@
#!/usr/bin/env python3
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
import numpy as np
import sys
diff --git a/src/arch/posix/Kconfig b/src/arch/posix/Kconfig
index d88cbfc..ad5e85e 100644
--- a/src/arch/posix/Kconfig
+++ b/src/arch/posix/Kconfig
@@ -1,3 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
config gpio_trace
bool "Trace GPIO changes on stdout"
diff --git a/src/arch/posix/Makefile.inc b/src/arch/posix/Makefile.inc
index 4ae0907..32a56cc 100644
--- a/src/arch/posix/Makefile.inc
+++ b/src/arch/posix/Makefile.inc
@@ -1,4 +1,8 @@
# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
COMMON_FLAGS += -DMULTIPASS_ARCH_posix
diff --git a/src/arch/posix/arch.cc b/src/arch/posix/arch.cc
index a2d78e9..83bf845 100644
--- a/src/arch/posix/arch.cc
+++ b/src/arch/posix/arch.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include <time.h>
#include <unistd.h>
diff --git a/src/arch/posix/driver/counter.cc b/src/arch/posix/driver/counter.cc
index 17a0f95..dd6196a 100644
--- a/src/arch/posix/driver/counter.cc
+++ b/src/arch/posix/driver/counter.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/counter.h"
Counter counter;
diff --git a/src/arch/posix/driver/gpio.cc b/src/arch/posix/driver/gpio.cc
index 1403aed..148bcdb 100644
--- a/src/arch/posix/driver/gpio.cc
+++ b/src/arch/posix/driver/gpio.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/gpio.h"
GPIO gpio;
diff --git a/src/arch/posix/driver/stdout.cc b/src/arch/posix/driver/stdout.cc
index e409389..a9ceaa4 100644
--- a/src/arch/posix/driver/stdout.cc
+++ b/src/arch/posix/driver/stdout.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/stdout.h"
#include <stdio.h>
diff --git a/src/arch/posix/driver/uptime.cc b/src/arch/posix/driver/uptime.cc
index 00b1d34..5c6ccd4 100644
--- a/src/arch/posix/driver/uptime.cc
+++ b/src/arch/posix/driver/uptime.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/uptime.h"
#include <time.h>
diff --git a/src/arch/stm32f446re-nucleo/Kconfig b/src/arch/stm32f446re-nucleo/Kconfig
index 19e02ed..3ce1668 100644
--- a/src/arch/stm32f446re-nucleo/Kconfig
+++ b/src/arch/stm32f446re-nucleo/Kconfig
@@ -1,3 +1,6 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
config arch_stm32f446re_nucleo_driver_counter
bool "Cycle Counter"
select meta_driver_counter
diff --git a/src/arch/stm32f446re-nucleo/Makefile.inc b/src/arch/stm32f446re-nucleo/Makefile.inc
index 4df29e1..781d82e 100644
--- a/src/arch/stm32f446re-nucleo/Makefile.inc
+++ b/src/arch/stm32f446re-nucleo/Makefile.inc
@@ -1,4 +1,8 @@
# vim:ft=make
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: BSD-2-Clause
SERIAL_PORT ?= ttyACM0
diff --git a/src/arch/stm32f446re-nucleo/arch.cc b/src/arch/stm32f446re-nucleo/arch.cc
index 99e3e5f..6216843 100644
--- a/src/arch/stm32f446re-nucleo/arch.cc
+++ b/src/arch/stm32f446re-nucleo/arch.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include <libopencm3/cm3/nvic.h>
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/gpio.h>
diff --git a/src/arch/stm32f446re-nucleo/driver/counter.cc b/src/arch/stm32f446re-nucleo/driver/counter.cc
index dfd22e3..1512019 100644
--- a/src/arch/stm32f446re-nucleo/driver/counter.cc
+++ b/src/arch/stm32f446re-nucleo/driver/counter.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#include "driver/counter.h"
diff --git a/src/arch/stm32f446re-nucleo/driver/gpio.cc b/src/arch/stm32f446re-nucleo/driver/gpio.cc
index 1403aed..148bcdb 100644
--- a/src/arch/stm32f446re-nucleo/driver/gpio.cc
+++ b/src/arch/stm32f446re-nucleo/driver/gpio.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/gpio.h"
GPIO gpio;
diff --git a/src/arch/stm32f446re-nucleo/driver/stdout.cc b/src/arch/stm32f446re-nucleo/driver/stdout.cc
index 2c20158..7cb8850 100644
--- a/src/arch/stm32f446re-nucleo/driver/stdout.cc
+++ b/src/arch/stm32f446re-nucleo/driver/stdout.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/stdout.h"
#include <libopencm3/stm32/rcc.h>
diff --git a/src/arch/stm32f446re-nucleo/driver/uptime.cc b/src/arch/stm32f446re-nucleo/driver/uptime.cc
index 388edb6..621ec91 100644
--- a/src/arch/stm32f446re-nucleo/driver/uptime.cc
+++ b/src/arch/stm32f446re-nucleo/driver/uptime.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/uptime.h"
Uptime uptime;
diff --git a/src/arch/stm32f446re-nucleo/stm32f446.ld b/src/arch/stm32f446re-nucleo/stm32f446.ld
index d53b56e..8dbd018 100644
--- a/src/arch/stm32f446re-nucleo/stm32f446.ld
+++ b/src/arch/stm32f446re-nucleo/stm32f446.ld
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: CC0-1.0
+ */
+
MEMORY
{
rom (rx) : ORIGIN = 0x08000000, LENGTH = 512K
diff --git a/src/driver/Kconfig b/src/driver/Kconfig
index 4cc018b..dbf70e0 100644
--- a/src/driver/Kconfig
+++ b/src/driver/Kconfig
@@ -1,3 +1,7 @@
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
config meta_driver_adc
bool
config meta_driver_counter
diff --git a/src/driver/aemr_transition_sync.cc b/src/driver/aemr_transition_sync.cc
index b7881a4..38e47fd 100644
--- a/src/driver/aemr_transition_sync.cc
+++ b/src/driver/aemr_transition_sync.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/aemr_transition_sync.h"
#include "driver/gpio.h"
#include "arch.h"
diff --git a/src/driver/am2320.cc b/src/driver/am2320.cc
index 532fdb6..f928b0b 100644
--- a/src/driver/am2320.cc
+++ b/src/driver/am2320.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/am2320.h"
#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(DRIVER_SOFTI2C)
#include "driver/i2c.h"
diff --git a/src/driver/bme280.cc b/src/driver/bme280.cc
index bf2cab5..3683ff9 100644
--- a/src/driver/bme280.cc
+++ b/src/driver/bme280.cc
@@ -22,6 +22,8 @@
/**\mainpage
* Copyright (C) 2018 - 2019 Bosch Sensortec GmbH
*
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
diff --git a/src/driver/bme680.cc b/src/driver/bme680.cc
index 2a27b18..194aa5c 100644
--- a/src/driver/bme680.cc
+++ b/src/driver/bme680.cc
@@ -1,6 +1,8 @@
/**\mainpage
* Copyright (C) 2017 - 2018 Bosch Sensortec GmbH
*
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
diff --git a/src/driver/bme680_util.cc b/src/driver/bme680_util.cc
index ebe48f7..1fa2ab6 100644
--- a/src/driver/bme680_util.cc
+++ b/src/driver/bme680_util.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "arch.h"
#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(DRIVER_SOFTI2C)
#include "driver/i2c.h"
diff --git a/src/driver/ccs811.cc b/src/driver/ccs811.cc
index a2b3940..ad0eabc 100644
--- a/src/driver/ccs811.cc
+++ b/src/driver/ccs811.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/ccs811.h"
#include "driver/gpio.h"
#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(DRIVER_SOFTI2C)
diff --git a/src/driver/eeprom24lc64.cc b/src/driver/eeprom24lc64.cc
index 745514b..a1c8de2 100644
--- a/src/driver/eeprom24lc64.cc
+++ b/src/driver/eeprom24lc64.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include <stdlib.h>
#include "driver/eeprom24lc64.h"
#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(DRIVER_SOFTI2C)
diff --git a/src/driver/hdc1080.cc b/src/driver/hdc1080.cc
index 26c97ef..e303e0a 100644
--- a/src/driver/hdc1080.cc
+++ b/src/driver/hdc1080.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/hdc1080.h"
#include "arch.h"
#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(DRIVER_SOFTI2C)
diff --git a/src/driver/lm75.cc b/src/driver/lm75.cc
index 2223137..2f2599f 100644
--- a/src/driver/lm75.cc
+++ b/src/driver/lm75.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/lm75.h"
#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(DRIVER_SOFTI2C)
#include "driver/i2c.h"
diff --git a/src/driver/max44009.cc b/src/driver/max44009.cc
index 3981e79..d09188c 100644
--- a/src/driver/max44009.cc
+++ b/src/driver/max44009.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/max44009.h"
#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(DRIVER_SOFTI2C)
#include "driver/i2c.h"
diff --git a/src/driver/mmsimple.cc b/src/driver/mmsimple.cc
index b2b2708..649d118 100644
--- a/src/driver/mmsimple.cc
+++ b/src/driver/mmsimple.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/mmsimple.h"
#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(DRIVER_SOFTI2C)
#include "driver/i2c.h"
diff --git a/src/driver/mmsubstate.cc b/src/driver/mmsubstate.cc
index b701f0b..0865599 100644
--- a/src/driver/mmsubstate.cc
+++ b/src/driver/mmsubstate.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/mmsubstate.h"
#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(DRIVER_SOFTI2C)
#include "driver/i2c.h"
diff --git a/src/driver/mpu9250.cc b/src/driver/mpu9250.cc
index 9b34ef4..3801f55 100644
--- a/src/driver/mpu9250.cc
+++ b/src/driver/mpu9250.cc
@@ -10,6 +10,8 @@
Copyright (c) 2016 SparkFun Electronics, Inc.
Copyright (c) 2019 Daniel Friesel
+SPDX-License-Identifier: MIT
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
diff --git a/src/driver/nrf24l01.cc b/src/driver/nrf24l01.cc
index bdb7d7f..23aaf27 100644
--- a/src/driver/nrf24l01.cc
+++ b/src/driver/nrf24l01.cc
@@ -1,5 +1,10 @@
/*
* Based on https://github.com/nRF24/RF24
+ *
+ * Copyright (C) 2011 J. Coliz <maniacbug@ymail.com>
+ * Copyright (C) 2019 Daniel Friesel
+ *
+ * SPDX-License-Identifier: GPL-2.0-only
*/
#include <stdlib.h>
diff --git a/src/driver/resistive_load.cc b/src/driver/resistive_load.cc
index 419c6c0..575dcb9 100644
--- a/src/driver/resistive_load.cc
+++ b/src/driver/resistive_load.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/resistive_load.h"
#include "driver/gpio.h"
#include "arch.h"
diff --git a/src/driver/s5851a.cc b/src/driver/s5851a.cc
index be46181..2684534 100644
--- a/src/driver/s5851a.cc
+++ b/src/driver/s5851a.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/s5851a.h"
#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(DRIVER_SOFTI2C)
#include "driver/i2c.h"
diff --git a/src/driver/sharp96.cc b/src/driver/sharp96.cc
index 2bd46d7..a4eba8a 100644
--- a/src/driver/sharp96.cc
+++ b/src/driver/sharp96.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/sharp96.h"
#include "driver/spi.h"
#include "driver/gpio.h"
diff --git a/src/driver/soft_i2c.cc b/src/driver/soft_i2c.cc
index e1cff47..8822fde 100644
--- a/src/driver/soft_i2c.cc
+++ b/src/driver/soft_i2c.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "driver/soft_i2c.h"
#include "driver/gpio.h"
#include "arch.h"
diff --git a/src/os/object/cpp_helpers.cc b/src/os/object/cpp_helpers.cc
index aad8020..59e1e97 100644
--- a/src/os/object/cpp_helpers.cc
+++ b/src/os/object/cpp_helpers.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
extern "C" void __cxa_pure_virtual()
{
//while (1);
diff --git a/src/os/object/outputstream.cc b/src/os/object/outputstream.cc
index d97f0d9..c509b07 100644
--- a/src/os/object/outputstream.cc
+++ b/src/os/object/outputstream.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "object/outputstream.h"
OutputStream & OutputStream::operator<<(unsigned char c)
@@ -192,14 +197,12 @@ void OutputStream::printf_float(float num)
put('0' + ((unsigned int)(num * 100) % 10));
}
-// FLUSH
OutputStream & flush(OutputStream & os)
{
os.flush();
return os;
}
-// ENDL: fuegt einen Zeilenumbruch in die Ausgabe ein.
OutputStream & endl(OutputStream & os)
{
os.put('\n');
@@ -207,35 +210,30 @@ OutputStream & endl(OutputStream & os)
return os;
}
-// BIN: print numbers in binary form
OutputStream & bin(OutputStream & os)
{
os.setBase(2);
return os;
}
-// OCT: print numbers in octal form.
OutputStream & oct(OutputStream & os)
{
os.setBase(8);
return os;
}
-// DEC: print numbers in decimal form.
OutputStream & dec(OutputStream & os)
{
os.setBase(10);
return os;
}
-// HEX: print numbers in hexadecimal form.
OutputStream & hex(OutputStream & os)
{
os.setBase(16);
return os;
}
-// TERM: null-termination
OutputStream & term(OutputStream & os)
{
os.put('\0');
diff --git a/src/os/object/xdr16input.cc b/src/os/object/xdr16input.cc
index 407f6ea..2247c29 100644
--- a/src/os/object/xdr16input.cc
+++ b/src/os/object/xdr16input.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "object/xdr16input.h"
uint16_t XDRInput::get_uint16()
diff --git a/src/os/object/xdr16stream.cc b/src/os/object/xdr16stream.cc
index 082b2a3..7f2a414 100644
--- a/src/os/object/xdr16stream.cc
+++ b/src/os/object/xdr16stream.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "object/xdr16stream.h"
XDRStream & XDRStream::operator<<(unsigned char c)
@@ -126,14 +131,12 @@ XDRStream & XDRStream::operator<<(XDRStream & (*fkt) (XDRStream &))
return fkt(*this);
}
-// FLUSH
XDRStream & flush(XDRStream & os)
{
os.flush();
return os;
}
-// TERM: null-termination
XDRStream & term(XDRStream & os)
{
os.put('\0');
diff --git a/src/os/object/xdrinput.cc b/src/os/object/xdrinput.cc
index e722fdd..c98c110 100644
--- a/src/os/object/xdrinput.cc
+++ b/src/os/object/xdrinput.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "object/xdrinput.h"
uint32_t XDRInput::get_uint32()
@@ -41,7 +46,7 @@ float XDRInput::get_float()
uint32_t i;
float f;
} v;
- // Setting one member of a struct and then reading another is undefined
+ // Setting one member of a union and then reading another is undefined
// behaviour, but works as intended in nearly any (embedded) compiler
v.i = get_uint32();
return v.f;
@@ -53,7 +58,7 @@ double XDRInput::get_double()
uint64_t i;
double d;
} v;
- // Setting one member of a struct and then reading another is undefined
+ // Setting one member of a union and then reading another is undefined
// behaviour, but works as intended in nearly any (embedded) compiler
v.i = get_uint64();
return v.d;
diff --git a/src/os/object/xdrstream.cc b/src/os/object/xdrstream.cc
index f0c9365..9dc5a1b 100644
--- a/src/os/object/xdrstream.cc
+++ b/src/os/object/xdrstream.cc
@@ -1,3 +1,8 @@
+/*
+ * Copyright 2020 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
#include "object/xdrstream.h"
XDRStream & XDRStream::operator<<(unsigned char c)
@@ -87,7 +92,7 @@ XDRStream & XDRStream::operator<<(double number)
uint64_t i;
double d;
} v;
- // Setting one member of a struct and then reading another is undefined
+ // Setting one member of a union and then reading another is undefined
// behaviour, but works as intended in nearly any (embedded) compiler
v.d = number;
*this << v.i;
@@ -128,14 +133,12 @@ XDRStream & XDRStream::operator<<(XDRStream & (*fkt) (XDRStream &))
return fkt(*this);
}
-// FLUSH
XDRStream & flush(XDRStream & os)
{
os.flush();
return os;
}
-// TERM: null-termination
XDRStream & term(XDRStream & os)
{
os.put('\0');
diff --git a/tests/posix b/tests/posix
index 8e12a30..c331048 100755
--- a/tests/posix
+++ b/tests/posix
@@ -1,4 +1,8 @@
#!/bin/sh
+#
+# Copyright 2020 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
uarttest() {
~/var/projects/uarttest/bin/uarttest.py "$@"