summaryrefslogtreecommitdiff
path: root/include/arch
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-01-27 18:58:25 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-01-27 18:58:25 +0100
commitb452e3f54fa46579182bc5e5fb993347e182d5a1 (patch)
treead14461de22643e13d2fd1a2f05236c76aac02bd /include/arch
parent7f98f3fd0d3c0f67cf77370f5480c43681424630 (diff)
MSP430FR5969: Add driver for UART output on eUSCI_A1 (stdout1)
Diffstat (limited to 'include/arch')
-rw-r--r--include/arch/msp430fr5969lp/driver/stdout1.h24
1 files changed, 24 insertions, 0 deletions
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 &copy);
+
+ public:
+ StandardOutput1 () {}
+ void setup();
+
+ virtual void put(char c) override;
+};
+
+extern StandardOutput1 kout1;
+
+#endif