summaryrefslogtreecommitdiff
path: root/include/arch/atmega2560/driver/stdout.h
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-02-07 21:12:04 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-02-07 21:12:04 +0100
commit998419816c815175cd4c4f226e619c578d42e0aa (patch)
tree3efa872828bb973406a15469ac9ddfd245f29cfa /include/arch/atmega2560/driver/stdout.h
parent30431427adbf05a3e5cc17f6fb4b1b1cbc105b39 (diff)
add arch atmega2560 (preliminary support)
Diffstat (limited to 'include/arch/atmega2560/driver/stdout.h')
-rw-r--r--include/arch/atmega2560/driver/stdout.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/arch/atmega2560/driver/stdout.h b/include/arch/atmega2560/driver/stdout.h
new file mode 100644
index 0000000..09b18c1
--- /dev/null
+++ b/include/arch/atmega2560/driver/stdout.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2021 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+#ifndef STANDARDOUTPUT_H
+#define STANDARDOUTPUT_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