summaryrefslogtreecommitdiff
path: root/include/arch/atmega2560/driver/stdout1.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/arch/atmega2560/driver/stdout1.h')
-rw-r--r--include/arch/atmega2560/driver/stdout1.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/arch/atmega2560/driver/stdout1.h b/include/arch/atmega2560/driver/stdout1.h
new file mode 100644
index 0000000..5ca03bb
--- /dev/null
+++ b/include/arch/atmega2560/driver/stdout1.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2021 Birte Kristina Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+#ifndef STANDARDOUTPUT1_H
+#define STANDARDOUTPUT1_H
+
+#include "object/outputstream.h"
+
+class StandardOutput1 : public OutputStream {
+ private:
+ StandardOutput1(const StandardOutput1 &copy);
+
+ public:
+ StandardOutput1 () {}
+ void setup();
+
+ virtual void put(char c) override;
+};
+
+extern StandardOutput1 kout1;
+
+#endif