summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-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
72 files changed, 338 insertions, 7 deletions
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