summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
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;