From edaad76b66e47d945d7aa352d13de5ab8251317a Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 28 May 2017 09:05:53 +0200 Subject: o Naming pins. o Correct prescaler for 1us resolution. o Trying out a lock structure for locking between an ISR and a main loop. --- CMakeLists.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 75d1f7b..de75f5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,16 +34,17 @@ target_sources(firmware PUBLIC mcucpp_process(TARGET firmware) -# stm32cube sources +# BSP sources mcu_include_directories_from_sources( SOURCE_DIR bsp/radio-controller-1 EXCLUDE Templates EXCLUDE _template.c EXCLUDE Examples EXCLUDE DSP_Lib - SOURCES_VAR STM32_CUBEMX_SOURCES - HEADERS_VAR STM32_CUBEMX_HEADERS - INCLUDES_VAR STM32_CUBEMX_INCLUDES + SOURCES_VAR BSP_SOURCES + HEADERS_VAR BSP_HEADERS + INCLUDES_VAR BSP_INCLUDES ) -target_include_directories(firmware PUBLIC ${STM32_CUBEMX_INCLUDES}) -target_sources(firmware PUBLIC ${STM32_CUBEMX_SOURCES} ${STM32_CUBEMX_HEADERS}) +list(FILTER BSP_INCLUDES INCLUDE REGEX Inc) +target_include_directories(firmware PUBLIC ${BSP_INCLUDES}) +target_sources(firmware PUBLIC ${BSP_SOURCES} ${BSP_HEADERS}) -- cgit v1.2.3