summaryrefslogtreecommitdiff
path: root/include/arch/msp430fr5994lp/driver/dmx2.h
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-01-27 20:36:05 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-01-27 20:36:05 +0100
commit1e5c3ee7f286583e0af655c0bd251013ff90fa5f (patch)
treee43188b092888cdf2cf97378e4032c9d3cced7ce /include/arch/msp430fr5994lp/driver/dmx2.h
parented1ab10711cf4eb9eb7a6ca0c17ff7239322f3fd (diff)
MSP430FR5994: support DMX on eUSCI_A1 and eUSCI_A2 as well
Diffstat (limited to 'include/arch/msp430fr5994lp/driver/dmx2.h')
-rw-r--r--include/arch/msp430fr5994lp/driver/dmx2.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/arch/msp430fr5994lp/driver/dmx2.h b/include/arch/msp430fr5994lp/driver/dmx2.h
new file mode 100644
index 0000000..1c8cd67
--- /dev/null
+++ b/include/arch/msp430fr5994lp/driver/dmx2.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright 2022 Birte Kristina Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+class DMX2 {
+ private:
+ DMX2(const DMX2 &copy);
+
+ public:
+ static unsigned char const num_frames = 32;
+ unsigned char frames[num_frames];
+
+ DMX2() {}
+
+ void setup();
+ void write();
+};
+
+extern DMX2 dmx2;