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/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 +++++ 8 files changed, 37 insertions(+), 7 deletions(-) (limited to 'src/arch/esp8266') 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; -- cgit v1.2.3