summaryrefslogtreecommitdiff
path: root/include/arduino-nano/driver/stdout.h
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-12-15 14:55:27 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-12-15 14:55:27 +0100
commit972126fd2406030dbd3abd1a705bb0ae1af9abb3 (patch)
tree74fea3d91fcaabebdd3c354fdc594ddedc09037e /include/arduino-nano/driver/stdout.h
parentbfcfa4cf67bad25ccba5ff735967d4c6abff899c (diff)
Add AVR (Arduino Nano) support
Diffstat (limited to 'include/arduino-nano/driver/stdout.h')
-rw-r--r--include/arduino-nano/driver/stdout.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/arduino-nano/driver/stdout.h b/include/arduino-nano/driver/stdout.h
new file mode 100644
index 0000000..d6cb2b0
--- /dev/null
+++ b/include/arduino-nano/driver/stdout.h
@@ -0,0 +1,19 @@
+#ifndef STANDARDOUTPUT_H
+#define STANDANDOUTPUT_H
+
+#include "object/outputstream.h"
+
+class StandardOutput : public OutputStream {
+ private:
+ StandardOutput(const StandardOutput &copy);
+
+ public:
+ StandardOutput () {}
+ void setup();
+
+ virtual void put(char c) override;
+};
+
+extern StandardOutput kout;
+
+#endif