Add a DEBUG_BLUETOOTH option

This commit is contained in:
dlktdr
2021-12-10 22:46:42 +01:00
committed by Risto
parent 48bd1ac738
commit 8a7ba1bd96
3 changed files with 11 additions and 3 deletions
@@ -23,6 +23,7 @@ option(DEBUG_LATENCY "Debug latency" OFF)
option(DEBUG_USB_INTERRUPTS "Count individual USB interrupts" OFF)
option(DEBUG_TASKS "Task switching statistics" OFF)
option(DEBUG_TIMERS "Time critical parts of the code" OFF)
option(DEBUG_BLUETOOTH "Debug Bluetooth" OFF)
# option to select the default internal module
#set(DEFAULT_INTERNAL_MODULE NONE CACHE STRING "Default internal module")
@@ -141,6 +142,10 @@ if(DEBUG_LATENCY STREQUAL END_TO_END)
add_definitions(-DDEBUG_LATENCY_END_TO_END)
endif()
if(DEBUG_BLUETOOTH)
add_definitions(-DDEBUG_BLUETOOTH)
endif()
if(CLI)
add_definitions(-DCLI)
set(FIRMWARE_SRC ${FIRMWARE_SRC} cli.cpp)