diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-01-27 20:36:05 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-01-27 20:36:05 +0100 |
commit | 1e5c3ee7f286583e0af655c0bd251013ff90fa5f (patch) | |
tree | e43188b092888cdf2cf97378e4032c9d3cced7ce /include/arch/msp430fr5994lp | |
parent | ed1ab10711cf4eb9eb7a6ca0c17ff7239322f3fd (diff) |
MSP430FR5994: support DMX on eUSCI_A1 and eUSCI_A2 as well
Diffstat (limited to 'include/arch/msp430fr5994lp')
-rw-r--r-- | include/arch/msp430fr5994lp/driver/dmx1.h (renamed from include/arch/msp430fr5994lp/driver/dmx.h) | 11 | ||||
-rw-r--r-- | include/arch/msp430fr5994lp/driver/dmx2.h | 21 | ||||
-rw-r--r-- | include/arch/msp430fr5994lp/driver/dmx3.h | 21 |
3 files changed, 48 insertions, 5 deletions
diff --git a/include/arch/msp430fr5994lp/driver/dmx.h b/include/arch/msp430fr5994lp/driver/dmx1.h index d3fff46..2f738b8 100644 --- a/include/arch/msp430fr5994lp/driver/dmx.h +++ b/include/arch/msp430fr5994lp/driver/dmx1.h @@ -4,17 +4,18 @@ * SPDX-License-Identifier: BSD-2-Clause */ -class DMX { +class DMX1 { private: - DMX(const DMX ©); + DMX1(const DMX1 ©); public: - unsigned char frames[16]; + static unsigned char const num_frames = 32; + unsigned char frames[num_frames]; - DMX() {} + DMX1() {} void setup(); void write(); }; -extern DMX dmx; +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; |