From b452e3f54fa46579182bc5e5fb993347e182d5a1 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 27 Jan 2024 18:58:25 +0100 Subject: MSP430FR5969: Add driver for UART output on eUSCI_A1 (stdout1) --- include/arch/msp430fr5969lp/driver/stdout1.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 include/arch/msp430fr5969lp/driver/stdout1.h (limited to 'include') diff --git a/include/arch/msp430fr5969lp/driver/stdout1.h b/include/arch/msp430fr5969lp/driver/stdout1.h new file mode 100644 index 0000000..baf5dc7 --- /dev/null +++ b/include/arch/msp430fr5969lp/driver/stdout1.h @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 ©); + + public: + StandardOutput1 () {} + void setup(); + + virtual void put(char c) override; +}; + +extern StandardOutput1 kout1; + +#endif -- cgit v1.2.3