From 89d464c7f38b902e332f082f99df075dee080978 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 29 Apr 2017 23:10:32 +0200 Subject: o Setting up for TIM1/Channel 1 as input capture. Enabling IWDG. --- CMakeLists.txt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ed8461..2ffe0f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,7 @@ cmake_minimum_required(VERSION 3.6) set(MCU_CHIP stm32f103C6) set(MCU_USE_STM32CUBEMX TRUE) +set(MCU_LTO_MODE OFF) include(thirdparty/mcu.cmake/mcu.cmake) project(radio-controller C CXX ASM) @@ -16,9 +17,14 @@ target_include_directories(firmware PUBLIC thirdparty/mcu.cmake/stm32f103/include ) target_sources(firmware PUBLIC - thirdparty/mcu.cmake/stm32f103/src/default_handler.cpp +# thirdparty/mcu.cmake/stm32f103/src/default_handler.cpp thirdparty/mcu.cmake/stm32f103/src/init_high.cpp - thirdparty/mcu.cmake/stm32f103/src/init_low.s +# thirdparty/mcu.cmake/stm32f103/src/init_low.s + thirdparty/mcu.cmake/stm32f103/src/init_stm32f103_ld.cpp + thirdparty/mcu.cmake/stm32f103/src/init_low_halt.s + thirdparty/mcu.cmake/stm32f103/src/init_low_Reset_Handler.s + thirdparty/mcu.cmake/stm32f103/src/breakpoint.s + $ENV{HOME}/opt/STM32CubeMX/Repository/STM32Cube_FW_F1_V1.4.0/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103x6.s ) # mcucpp sources @@ -39,6 +45,9 @@ target_sources(firmware PUBLIC mcu_include_directories_from_sources( SOURCE_DIR stm32cubemx EXCLUDE Templates + EXCLUDE _template.c + EXCLUDE Examples + EXCLUDE DSP_Lib EXCLUDE stm32f1xx_it.c SOURCES_VAR STM32_CUBEMX_SOURCES HEADERS_VAR STM32_CUBEMX_HEADERS -- cgit v1.2.3