summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-03-01 20:00:59 (GMT)
committerJF <jf@codingfield.com>2020-03-01 20:00:59 (GMT)
commit6f1857c50397aa26d1b16ded6bbb4e6952f3762e (patch)
tree877086a8a42fba1dfb11b853be730410de8e506c /CMakeLists.txt
parent5bc0640b735573b465cfef16fb729ad5f5149eb4 (diff)
Add debugPins module that provides functions to set and clear debug GPIOs.
Disable logging once again.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a874a9e..3e36bff 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -37,6 +37,10 @@ if(USE_OPENOCD)
endif()
endif()
+if(DEFINED USE_DEBUG_PINS AND USE_DEBUG_PINS)
+ add_definitions(-DUSE_DEBUG_PINS)
+endif()
+
message("BUILD CONFIGURATION")
message("-------------------")
message(" * Version : " ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
@@ -53,6 +57,11 @@ elseif(USE_GDB_CLIENT)
elseif(USE_OPENOCD)
message(" * Programmer/debugger : OpenOCD Client")
endif()
+if(USE_DEBUG_PINS)
+ message(" * Debug pins : Enabled")
+else()
+ message(" * Debug pins : Disabled")
+endif()
set(VERSION_EDIT_WARNING "// Do not edit this file, it is automatically generated by CMAKE!")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/Version.h.in ${CMAKE_CURRENT_SOURCE_DIR}/src/Version.h)