summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-01-26 23:28:04 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-01-26 23:28:04 +0100
commitc0d4c55b6c4a1111a42ddb74e0ab9650c92b0d8f (patch)
tree3fe6162c274c93c31d11e5421ecea0e4d54904d9 /src/app
parent43a3880f6e063216952385048be278c87dae466d (diff)
uart-to-dmx: support DMX1 through 3
Diffstat (limited to 'src/app')
-rw-r--r--src/app/uart-to-dmx/main.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/app/uart-to-dmx/main.cc b/src/app/uart-to-dmx/main.cc
index 892ce56..ccb12c8 100644
--- a/src/app/uart-to-dmx/main.cc
+++ b/src/app/uart-to-dmx/main.cc
@@ -8,7 +8,19 @@
#include "driver/stdout.h"
#include "driver/stdin.h"
#include "driver/uptime.h"
-#include "driver/dmx.h"
+
+#if defined(CONFIG_meta_driver_dmx1)
+#include "driver/dmx1.h"
+#define dmx dmx1
+#elif defined(CONFIG_meta_driver_dmx2)
+#include "driver/dmx2.h"
+#define dmx dmx2
+#elif defined(CONFIG_meta_driver_dmx3)
+#include "driver/dmx3.h"
+#define dmx dmx3
+#else
+#error "No DMX driver found"
+#endif
#include "driver/timer.h"
volatile unsigned char timer_done = 0;