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/dmx.h | 20 -------------------- include/arch/msp430fr5994lp/driver/dmx1.h | 21 +++++++++++++++++++++ include/arch/msp430fr5994lp/driver/dmx2.h | 21 +++++++++++++++++++++ include/arch/msp430fr5994lp/driver/dmx3.h | 21 +++++++++++++++++++++ 4 files changed, 63 insertions(+), 20 deletions(-) delete mode 100644 include/arch/msp430fr5994lp/driver/dmx.h create mode 100644 include/arch/msp430fr5994lp/driver/dmx1.h create mode 100644 include/arch/msp430fr5994lp/driver/dmx2.h create mode 100644 include/arch/msp430fr5994lp/driver/dmx3.h (limited to 'include/arch/msp430fr5994lp') diff --git a/include/arch/msp430fr5994lp/driver/dmx.h b/include/arch/msp430fr5994lp/driver/dmx.h deleted file mode 100644 index d3fff46..0000000 --- a/include/arch/msp430fr5994lp/driver/dmx.h +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright 2022 Birte Kristina Friesel - * - * SPDX-License-Identifier: BSD-2-Clause - */ - -class DMX { - private: - DMX(const DMX ©); - - public: - unsigned char frames[16]; - - DMX() {} - - void setup(); - void write(); -}; - -extern DMX dmx; diff --git a/include/arch/msp430fr5994lp/driver/dmx1.h b/include/arch/msp430fr5994lp/driver/dmx1.h new file mode 100644 index 0000000..2f738b8 --- /dev/null +++ b/include/arch/msp430fr5994lp/driver/dmx1.h @@ -0,0 +1,21 @@ +/* + * Copyright 2022 Birte Kristina Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +class DMX1 { + private: + DMX1(const DMX1 ©); + + public: + static unsigned char const num_frames = 32; + unsigned char frames[num_frames]; + + DMX1() {} + + void setup(); + void write(); +}; + +extern DMX1 dmx1; 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; diff --git a/include/arch/msp430fr5994lp/driver/dmx3.h b/include/arch/msp430fr5994lp/driver/dmx3.h new file mode 100644 index 0000000..c8541bf --- /dev/null +++ b/include/arch/msp430fr5994lp/driver/dmx3.h @@ -0,0 +1,21 @@ +/* + * Copyright 2022 Birte Kristina Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +class DMX3 { + private: + DMX3(const DMX3 ©); + + public: + static unsigned char const num_frames = 32; + unsigned char frames[num_frames]; + + DMX3() {} + + void setup(); + void write(); +}; + +extern DMX3 dmx3; -- cgit v1.2.3