diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-12-08 18:19:13 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-12-08 18:19:13 +0100 |
commit | 812899797d6d8ea773bf960cd74680d20043c5a4 (patch) | |
tree | 470bb05de36285e9f8b86fa34daebd163e3860ed /src/arch/esp8266/driver/stdout.cc | |
parent | e1526bb2c84b315c72a089dbb50447183d4b1685 (diff) |
add licensing information
Diffstat (limited to 'src/arch/esp8266/driver/stdout.cc')
-rw-r--r-- | src/arch/esp8266/driver/stdout.cc | 12 |
1 files changed, 5 insertions, 7 deletions
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'); |