diff --git a/src/dali/commands.hpp b/src/dali/commands.hpp index 583214d..d649399 100644 --- a/src/dali/commands.hpp +++ b/src/dali/commands.hpp @@ -165,8 +165,6 @@ enum class Command { QUERY_RANDOM_ADDR_L = 196, READ_MEMORY_LOCATION = 197, - QUERY_EXTENDED_VERSION_NUMBER = 255, - // Special commands _SPECIAL_COMMAND = 1024, // not for use diff --git a/src/xmc1200/bccu.cpp b/src/xmc1200/bccu.cpp index d4a8d0e..5e97acb 100644 --- a/src/xmc1200/bccu.cpp +++ b/src/xmc1200/bccu.cpp @@ -19,7 +19,6 @@ #define DIMMING_MAX 1023 #define DIMMING_MAGIC_UP 20479 #define DIMMING_MAGIC_DOWN 20734 -#define DIMMING_MAGIC ((DIMMING_MAGIC_UP + DIMMING_MAGIC_DOWN) / 2) #define MSEC_PER_SEC 1000 diff --git a/src/xmc1200/dali/bus_config.h b/src/xmc1200/dali/bus_config.h index aa52e82..110ea77 100644 --- a/src/xmc1200/dali/bus_config.h +++ b/src/xmc1200/dali/bus_config.h @@ -22,7 +22,7 @@ extern const XMC_UART_CH_CONFIG_t kDaliTxUARTConfig; -// CCU4 configuration - used for DALI TX +// CCU4 configuration - used for DALI RX # define CCU40_SLICE CCU40_CC42 # define CCU40_SLICE_NUMBER 2 # define CCU40_SLICE_INPUT XMC_CCU4_SLICE_INPUT_C diff --git a/src/xmc1200/dali/timer.cpp b/src/xmc1200/dali/timer.cpp index bc4221b..1f9466f 100644 --- a/src/xmc1200/dali/timer.cpp +++ b/src/xmc1200/dali/timer.cpp @@ -90,11 +90,6 @@ uint64_t Timer::getTimeMs() { } // static -uint16_t Timer::freq() { - return TICKS_PER_SECOND; -} - -// static void Timer::runSlice() { for (uint8_t i = 0; i < MAX_TASKS; ++i) { TaskInfo* taskInfo = &gTasks[i]; diff --git a/src/xmc1200/dali/timer.hpp b/src/xmc1200/dali/timer.hpp index aeea90c..0963b5f 100644 --- a/src/xmc1200/dali/timer.hpp +++ b/src/xmc1200/dali/timer.hpp @@ -28,7 +28,6 @@ public: uint32_t randomize() override; static uint64_t getTimeMs(); - static uint16_t freq(); static void runSlice(); private: