summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-01-26 22:24:50 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-01-26 22:24:50 +0100
commit36f39d1bbae7b64e45b4ba505c704c04d90ecf79 (patch)
tree4a04d677bc4e11a3d6dc3fc6bf9d530664d5e6f6 /include
parenta0e6e8efb208d8b6b21199554ddf21f86c405857 (diff)
atmega2560: add dmx driver on UART3
Diffstat (limited to 'include')
-rw-r--r--include/arch/atmega2560/driver/dmx.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/arch/atmega2560/driver/dmx.h b/include/arch/atmega2560/driver/dmx.h
new file mode 100644
index 0000000..5550c19
--- /dev/null
+++ b/include/arch/atmega2560/driver/dmx.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright 2022 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+class DMX {
+ private:
+ DMX(const DMX &copy);
+
+ public:
+ static unsigned char const num_frames = 32;
+ unsigned char frames[num_frames];
+
+ DMX() {}
+
+ void setup();
+ void write();
+};
+
+extern DMX dmx;