-
Notifications
You must be signed in to change notification settings - Fork 25
/
config_freertos_rt1052.cmake
38 lines (29 loc) · 1.4 KB
/
config_freertos_rt1052.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/local_config_${TARGET}.cmake)
include(local_config_${TARGET}.cmake)
endif()
if(NOT CMAKE_TOOLCHAIN_FILE)
message(FATAL_ERROR "No toolchain specified, make sure the correct one is selected")
else()
message(STATUS "Toolchain: ${CMAKE_TOOLCHAIN_FILE}")
endif()
set(TARGET_OS rtos)
set(TARGET_ARCH armv7m)
set(RTOS_ABSTRACTION_LAYER_DIR ${CMAKE_CURRENT_SOURCE_DIR}/rtos/freertos)
if(NOT DEFINED MCUX_SDK)
message(WARNING "Undefined MCUX_SDK")
endif()
if(NOT DEFINED RTOS_APPS)
message(WARNING "Undefined RTOS_APPS, default used")
endif()
set(RTOS_DIR ${MCUX_SDK}/rtos/freertos/freertos-kernel)
set(FREERTOS_PORT GCC/ARM_CM4F)
set(FREERTOS_CONFIG_INCLUDES ${RTOS_APPS}/boards/evkbimxrt1050/demo_apps/avb_tsn/common ${RTOS_APPS}/boards/src/demo_apps/avb_tsn/common)
if(NOT DEFINED APP_GENAVB_SDK_INCLUDE)
set(APP_GENAVB_SDK_INCLUDE ${RTOS_APPS}/boards/evkbimxrt1050/demo_apps/avb_tsn/common)
endif()
set(MCUX_SDK_DEVICE_DIRS ${MCUX_SDK}/devices/MIMXRT1052 ${MCUX_SDK}/devices/MIMXRT1052/drivers ${MCUX_SDK}/devices/MIMXRT1052/drivers/cm7)
set(MCUX_SDK_TARGET_DIRS ${MCUX_SDK}/CMSIS/Core/Include)
set(INCLUDE_DIR usr/include)
add_compile_definitions(CPU_MIMXRT1052DVL6B ENET_ENHANCEDBUFFERDESCRIPTOR_MODE)
add_compile_options(-Wall -g -Werror -Wpointer-arith -std=c99 -Wdeclaration-after-statement)
add_compile_options(-Os -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16)