From 2c26e3702413f62649f1aa38a407927df5f6fe30 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 27 Jan 2024 19:33:18 +0100 Subject: msp430fr5969 stdin: increase buffer size; move initialization to stdin --- include/arch/msp430fr5969lp/driver/dmx.h | 20 -------------------- include/arch/msp430fr5969lp/driver/dmx1.h | 21 +++++++++++++++++++++ include/arch/msp430fr5969lp/driver/stdin.h | 2 +- 3 files changed, 22 insertions(+), 21 deletions(-) delete mode 100644 include/arch/msp430fr5969lp/driver/dmx.h create mode 100644 include/arch/msp430fr5969lp/driver/dmx1.h (limited to 'include/arch/msp430fr5969lp') diff --git a/include/arch/msp430fr5969lp/driver/dmx.h b/include/arch/msp430fr5969lp/driver/dmx.h deleted file mode 100644 index d3fff46..0000000 --- a/include/arch/msp430fr5969lp/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/msp430fr5969lp/driver/dmx1.h b/include/arch/msp430fr5969lp/driver/dmx1.h new file mode 100644 index 0000000..2f738b8 --- /dev/null +++ b/include/arch/msp430fr5969lp/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/msp430fr5969lp/driver/stdin.h b/include/arch/msp430fr5969lp/driver/stdin.h index 34d0551..9076baa 100644 --- a/include/arch/msp430fr5969lp/driver/stdin.h +++ b/include/arch/msp430fr5969lp/driver/stdin.h @@ -9,7 +9,7 @@ class StandardInput { private: StandardInput(const StandardInput ©); - static unsigned char const bufsize = 16; + static unsigned char const bufsize = 32; char buffer[bufsize]; volatile unsigned char write_pos; unsigned char read_pos; -- cgit v1.2.3