summaryrefslogtreecommitdiff
path: root/include/arch
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-01-27 19:33:18 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-01-27 19:33:18 +0100
commit2c26e3702413f62649f1aa38a407927df5f6fe30 (patch)
tree99bfe43bf9ea789f13a74b6bfc71f1398eb7ec44 /include/arch
parentb452e3f54fa46579182bc5e5fb993347e182d5a1 (diff)
msp430fr5969 stdin: increase buffer size; move initialization to stdin
Diffstat (limited to 'include/arch')
-rw-r--r--include/arch/msp430fr5969lp/driver/dmx1.h (renamed from include/arch/msp430fr5969lp/driver/dmx.h)11
-rw-r--r--include/arch/msp430fr5969lp/driver/stdin.h2
2 files changed, 7 insertions, 6 deletions
diff --git a/include/arch/msp430fr5969lp/driver/dmx.h b/include/arch/msp430fr5969lp/driver/dmx1.h
index d3fff46..2f738b8 100644
--- a/include/arch/msp430fr5969lp/driver/dmx.h
+++ b/include/arch/msp430fr5969lp/driver/dmx1.h
@@ -4,17 +4,18 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
-class DMX {
+class DMX1 {
private:
- DMX(const DMX &copy);
+ DMX1(const DMX1 &copy);
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/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 &copy);
- static unsigned char const bufsize = 16;
+ static unsigned char const bufsize = 32;
char buffer[bufsize];
volatile unsigned char write_pos;
unsigned char read_pos;