From dcf84169ae75b11c1656d45dbc6c626d93da6a10 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 8 Dec 2017 15:07:52 +0100 Subject: Add output support (broken on esp8266) --- src/arch/posix/driver/stdout.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/arch/posix/driver/stdout.cc (limited to 'src/arch/posix/driver/stdout.cc') diff --git a/src/arch/posix/driver/stdout.cc b/src/arch/posix/driver/stdout.cc new file mode 100644 index 0000000..e409389 --- /dev/null +++ b/src/arch/posix/driver/stdout.cc @@ -0,0 +1,14 @@ +#include "driver/stdout.h" +#include + +void StandardOutput::put(char c) +{ + fputc(c, stdout); +} + +void StandardOutput::flush() +{ + fflush(stdout); +} + +StandardOutput kout; -- cgit v1.2.3