diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-02-07 21:12:04 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-02-07 21:12:04 +0100 |
commit | 998419816c815175cd4c4f226e619c578d42e0aa (patch) | |
tree | 3efa872828bb973406a15469ac9ddfd245f29cfa /include/arch/atmega2560/driver/stdout.h | |
parent | 30431427adbf05a3e5cc17f6fb4b1b1cbc105b39 (diff) |
add arch atmega2560 (preliminary support)
Diffstat (limited to 'include/arch/atmega2560/driver/stdout.h')
-rw-r--r-- | include/arch/atmega2560/driver/stdout.h | 24 |
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 ©); + + public: + StandardOutput () {} + void setup(); + + virtual void put(char c) override; +}; + +extern StandardOutput kout; + +#endif |