From 998419816c815175cd4c4f226e619c578d42e0aa Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 7 Feb 2021 21:12:04 +0100 Subject: add arch atmega2560 (preliminary support) --- include/arch/atmega2560/driver/stdout.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 include/arch/atmega2560/driver/stdout.h (limited to 'include/arch/atmega2560/driver/stdout.h') 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 ©); + + public: + StandardOutput () {} + void setup(); + + virtual void put(char c) override; +}; + +extern StandardOutput kout; + +#endif -- cgit v1.2.3