From 812899797d6d8ea773bf960cd74680d20043c5a4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 8 Dec 2020 18:19:13 +0100 Subject: add licensing information --- src/app/aemr/Makefile.inc | 6 ++++++ src/app/blinkencat3/Kconfig | 4 ++++ src/app/blinkencat3/Makefile.inc | 6 ++++++ src/app/blinkencat3/main.cc | 5 +++++ src/app/button-and-motion-logger/Kconfig | 4 ++++ src/app/button-and-motion-logger/Makefile.inc | 6 ++++++ src/app/button-and-motion-logger/client.py | 4 ++++ src/app/button-and-motion-logger/main.cc | 5 +++++ src/app/ccs811test/Makefile.inc | 6 ++++++ src/app/ccs811test/main.cc | 5 +++++ src/app/countertest/Kconfig | 4 ++++ src/app/countertest/Makefile.inc | 6 ++++++ src/app/countertest/main.cc | 5 +++++ src/app/donothing/Kconfig | 4 ++++ src/app/donothing/Makefile.inc | 6 ++++++ src/app/donothing/main.cc | 5 +++++ src/app/energybench/Kconfig | 4 ++++ src/app/energybench/Makefile.inc | 7 +++++++ src/app/energybench/main.cc | 5 +++++ src/app/i2cbench/Makefile.inc | 6 ++++++ src/app/i2cbench/main.cc | 5 +++++ src/app/i2cdetect/Kconfig | 4 ++++ src/app/i2cdetect/Makefile.inc | 6 ++++++ src/app/i2cdetect/main.cc | 5 +++++ src/app/ledblink/Kconfig | 4 ++++ src/app/ledblink/Makefile.inc | 6 ++++++ src/app/ledblink/main.cc | 5 +++++ src/app/loratest/Kconfig | 4 ++++ src/app/loratest/Makefile.inc | 6 ++++++ src/app/loratest/main.cc | 5 +++++ src/app/luxlog/Kconfig | 4 ++++ src/app/luxlog/Makefile.inc | 6 ++++++ src/app/luxlog/main.cc | 5 +++++ src/app/mpu9250_motionlog/Kconfig | 4 ++++ src/app/mpu9250_motionlog/Makefile.inc | 6 ++++++ src/app/mpu9250_motionlog/main.cc | 5 +++++ src/app/nrf24l01test/Makefile.inc | 6 ++++++ src/app/nrf24l01test/main.cc | 5 +++++ src/app/sharp96test/Kconfig | 4 ++++ src/app/sharp96test/Makefile.inc | 6 ++++++ src/app/sharp96test/main.cc | 5 +++++ src/app/shell/Kconfig | 4 ++++ src/app/shell/Makefile.inc | 6 ++++++ src/app/shell/main.cc | 5 +++++ src/app/sysinfo/Makefile.inc | 6 ++++++ src/app/sysinfo/main.cc | 5 +++++ src/app/test_basic/Makefile.inc | 7 +++++++ src/app/test_basic/main.cc | 5 +++++ src/app/timertest/Makefile.inc | 6 ++++++ src/app/timertest/main.cc | 5 +++++ src/app/transactiontest/Kconfig | 4 ++++ src/app/transactiontest/Makefile.inc | 6 ++++++ src/app/transactiontest/main.cc | 5 +++++ src/app/transactiontest/util.S | 6 ++++++ src/app/waittest/Makefile.inc | 6 ++++++ src/app/waittest/main.cc | 5 +++++ src/app/wetterstation/Kconfig | 4 ++++ src/app/wetterstation/Makefile.inc | 6 ++++++ src/app/wetterstation/client.py | 4 ++++ src/app/wetterstation/main.cc | 5 +++++ src/app/ws2812b_dmap/Kconfig | 4 ++++ src/app/ws2812b_dmap/Makefile.inc | 6 ++++++ src/app/ws2812b_dmap/main.cc | 5 +++++ src/app/ws2812b_uart/Kconfig | 4 ++++ src/app/ws2812b_uart/Makefile.inc | 6 ++++++ src/app/ws2812b_uart/main.cc | 5 +++++ src/arch/arduino-nano/Kconfig | 3 +++ src/arch/arduino-nano/Makefile.inc | 4 ++++ src/arch/arduino-nano/arch.cc | 5 +++++ src/arch/arduino-nano/driver/adc.cc | 5 +++++ src/arch/arduino-nano/driver/counter.cc | 5 +++++ src/arch/arduino-nano/driver/gpio.cc | 5 +++++ src/arch/arduino-nano/driver/i2c.cc | 5 +++++ src/arch/arduino-nano/driver/neopixel.cc | 5 +++++ src/arch/arduino-nano/driver/spi.cc | 5 +++++ src/arch/arduino-nano/driver/stdin.cc | 5 +++++ src/arch/arduino-nano/driver/stdout.cc | 5 +++++ src/arch/arduino-nano/driver/timer.cc | 5 +++++ src/arch/arduino-nano/driver/uptime.cc | 5 +++++ src/arch/blinkenrocket/Kconfig | 3 +++ src/arch/blinkenrocket/Makefile.inc | 4 ++++ src/arch/blinkenrocket/arch.cc | 5 +++++ src/arch/blinkenrocket/driver/gpio.cc | 5 +++++ src/arch/blinkenrocket/driver/i2c.cc | 5 +++++ src/arch/blinkenrocket/driver/stdout.cc | 5 +++++ src/arch/blinkenrocket/driver/uptime.cc | 5 +++++ src/arch/esp8266/Kconfig | 3 +++ src/arch/esp8266/Makefile.inc | 4 ++++ src/arch/esp8266/arch.cc | 5 +++++ src/arch/esp8266/driver/counter.cc | 5 +++++ src/arch/esp8266/driver/gpio.cc | 5 +++++ src/arch/esp8266/driver/stdin.cc | 5 +++++ src/arch/esp8266/driver/stdout.cc | 12 +++++------- src/arch/esp8266/driver/uptime.cc | 5 +++++ src/arch/msp430fr5969lp/Kconfig | 3 +++ src/arch/msp430fr5969lp/Makefile.inc | 4 ++++ src/arch/msp430fr5969lp/arch.cc | 5 +++++ src/arch/msp430fr5969lp/driver/adc.cc | 5 +++++ src/arch/msp430fr5969lp/driver/counter.cc | 5 +++++ src/arch/msp430fr5969lp/driver/gpio.cc | 5 +++++ src/arch/msp430fr5969lp/driver/i2c.cc | 5 +++++ src/arch/msp430fr5969lp/driver/spi.cc | 5 +++++ src/arch/msp430fr5969lp/driver/stdin.cc | 5 +++++ src/arch/msp430fr5969lp/driver/stdout.cc | 5 +++++ src/arch/msp430fr5969lp/driver/timer.cc | 5 +++++ src/arch/msp430fr5969lp/driver/uptime.cc | 5 +++++ src/arch/msp430fr5969lp/model.py | 4 ++++ src/arch/msp430fr5994lp/Kconfig | 3 +++ src/arch/msp430fr5994lp/Makefile.inc | 4 ++++ src/arch/msp430fr5994lp/arch.cc | 5 +++++ src/arch/msp430fr5994lp/driver/adc.cc | 5 +++++ src/arch/msp430fr5994lp/driver/counter.cc | 5 +++++ src/arch/msp430fr5994lp/driver/cpufreq.cc | 5 +++++ src/arch/msp430fr5994lp/driver/gpio.cc | 5 +++++ src/arch/msp430fr5994lp/driver/i2c.cc | 5 +++++ src/arch/msp430fr5994lp/driver/spi.cc | 5 +++++ src/arch/msp430fr5994lp/driver/spi_a1.cc | 5 +++++ src/arch/msp430fr5994lp/driver/stdin.cc | 5 +++++ src/arch/msp430fr5994lp/driver/stdout.cc | 5 +++++ src/arch/msp430fr5994lp/driver/timed_resistive_load.cc | 5 +++++ src/arch/msp430fr5994lp/driver/timer.cc | 5 +++++ src/arch/msp430fr5994lp/driver/uptime.cc | 5 +++++ src/arch/msp430fr5994lp/model.py | 4 ++++ src/arch/posix/Kconfig | 3 +++ src/arch/posix/Makefile.inc | 4 ++++ src/arch/posix/arch.cc | 5 +++++ src/arch/posix/driver/counter.cc | 5 +++++ src/arch/posix/driver/gpio.cc | 5 +++++ src/arch/posix/driver/stdout.cc | 5 +++++ src/arch/posix/driver/uptime.cc | 5 +++++ src/arch/stm32f446re-nucleo/Kconfig | 3 +++ src/arch/stm32f446re-nucleo/Makefile.inc | 4 ++++ src/arch/stm32f446re-nucleo/arch.cc | 5 +++++ src/arch/stm32f446re-nucleo/driver/counter.cc | 5 +++++ src/arch/stm32f446re-nucleo/driver/gpio.cc | 5 +++++ src/arch/stm32f446re-nucleo/driver/stdout.cc | 5 +++++ src/arch/stm32f446re-nucleo/driver/uptime.cc | 5 +++++ src/arch/stm32f446re-nucleo/stm32f446.ld | 6 ++++++ src/driver/Kconfig | 4 ++++ src/driver/aemr_transition_sync.cc | 5 +++++ src/driver/am2320.cc | 5 +++++ src/driver/bme280.cc | 2 ++ src/driver/bme680.cc | 2 ++ src/driver/bme680_util.cc | 5 +++++ src/driver/ccs811.cc | 5 +++++ src/driver/eeprom24lc64.cc | 5 +++++ src/driver/hdc1080.cc | 5 +++++ src/driver/lm75.cc | 5 +++++ src/driver/max44009.cc | 5 +++++ src/driver/mmsimple.cc | 5 +++++ src/driver/mmsubstate.cc | 5 +++++ src/driver/mpu9250.cc | 2 ++ src/driver/nrf24l01.cc | 5 +++++ src/driver/resistive_load.cc | 5 +++++ src/driver/s5851a.cc | 5 +++++ src/driver/sharp96.cc | 5 +++++ src/driver/soft_i2c.cc | 5 +++++ src/os/object/cpp_helpers.cc | 5 +++++ src/os/object/outputstream.cc | 12 +++++------- src/os/object/xdr16input.cc | 5 +++++ src/os/object/xdr16stream.cc | 7 +++++-- src/os/object/xdrinput.cc | 9 +++++++-- src/os/object/xdrstream.cc | 9 ++++++--- 163 files changed, 795 insertions(+), 21 deletions(-) (limited to 'src') 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 #include 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 #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 #include 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 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 #include 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 #include 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 #include 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 #include 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 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 #include 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 #include 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 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 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 #include #include 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 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 #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 + * Copyright (C) 2019 Daniel Friesel + * + * SPDX-License-Identifier: GPL-2.0-only */ #include 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'); -- cgit v1.2.3