Move FreeRTOS port file inclusion to MCU specific section
This commit is contained in:
@@ -2,10 +2,13 @@ set(CPU_FAMILY STM32)
|
||||
set(MCU cortex-m3)
|
||||
set(FPU_FLAGS "")
|
||||
set(STM32LIB_DIR ${THIRDPARTY_DIR}/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries)
|
||||
|
||||
include_directories(${STM32LIB_DIR}/STM32F2xx_StdPeriph_Driver/inc)
|
||||
include_directories(${STM32LIB_DIR}/CMSIS/Device/ST/STM32F2xx/Include)
|
||||
include_directories(${STM32LIB_DIR}/CMSIS/include)
|
||||
|
||||
add_definitions(-DSTM32F2)
|
||||
|
||||
set(STM32LIB_SRC
|
||||
${STM32LIB_SRC}
|
||||
CMSIS/Device/ST/STM32F2xx/Source/Templates/gcc_ride7/startup_stm32f2xx.s
|
||||
@@ -22,5 +25,17 @@ set(STM32LIB_SRC
|
||||
STM32F2xx_StdPeriph_Driver/src/stm32f2xx_pwr.c
|
||||
STM32F2xx_StdPeriph_Driver/src/stm32f2xx_usart.c
|
||||
)
|
||||
set(FIRMWARE_TARGET_SRC ${FIRMWARE_TARGET_SRC} ../common/arm/stm32/f2/system_stm32f2xx.c)
|
||||
|
||||
#
|
||||
# FreeRTOS port specific include
|
||||
#
|
||||
include_directories(${RTOS_DIR}/portable/GCC/ARM_CM3)
|
||||
|
||||
#
|
||||
# System and FreeRTOS port files
|
||||
#
|
||||
set(FIRMWARE_TARGET_SRC ${FIRMWARE_TARGET_SRC}
|
||||
../../common/arm/stm32/f2/system_stm32f2xx.c
|
||||
../../${THIRDPARTY_DIR}/${RTOS_DIR}/portable/GCC/ARM_CM3/port.c
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user