From 1e5c3ee7f286583e0af655c0bd251013ff90fa5f Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 27 Jan 2024 20:36:05 +0100 Subject: MSP430FR5994: support DMX on eUSCI_A1 and eUSCI_A2 as well --- include/arch/msp430fr5994lp/driver/dmx2.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 include/arch/msp430fr5994lp/driver/dmx2.h (limited to 'include/arch/msp430fr5994lp/driver/dmx2.h') 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 ©); + + public: + static unsigned char const num_frames = 32; + unsigned char frames[num_frames]; + + DMX2() {} + + void setup(); + void write(); +}; + +extern DMX2 dmx2; -- cgit v1.2.3