diff options
Diffstat (limited to 'src/arch/esp8266/driver')
-rw-r--r-- | src/arch/esp8266/driver/counter.cc | 5 | ||||
-rw-r--r-- | src/arch/esp8266/driver/gpio.cc | 5 | ||||
-rw-r--r-- | src/arch/esp8266/driver/stdin.cc | 5 | ||||
-rw-r--r-- | src/arch/esp8266/driver/stdout.cc | 12 | ||||
-rw-r--r-- | src/arch/esp8266/driver/uptime.cc | 5 |
5 files changed, 25 insertions, 7 deletions
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; |