From c0d4c55b6c4a1111a42ddb74e0ab9650c92b0d8f Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 26 Jan 2024 23:28:04 +0100 Subject: uart-to-dmx: support DMX1 through 3 --- src/app/uart-to-dmx/main.cc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3