mbed-os/tools/cmake/cores/Cortex-M33FE-NS.cmake

32 lines
792 B
CMake
Raw Normal View History

2020-07-20 16:52:23 +00:00
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# Sets cpu core options
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
list(APPEND common_options
"-mthumb"
"-mfpu=fpv5-sp-d16"
"-mfloat-abi=softfp"
"-mcpu=cortex-m33"
2020-12-08 10:28:50 +00:00
)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
list(APPEND common_options
"-mfpu=fpv5-sp-d16"
"-mfloat-abi=hard"
"-mcpu=cortex-m33+dsp"
2020-12-08 10:28:50 +00:00
)
endif()
function(mbed_set_cpu_core_definitions target)
target_compile_definitions(${target}
2020-10-28 17:21:36 +00:00
INTERFACE
__CORTEX_M33
ARM_MATH_ARMV8MML
2021-01-15 10:23:16 +00:00
DOMAIN_NS=1
__FPU_PRESENT=1U
__CMSIS_RTOS
__MBED_CMSIS_RTOS_CM
__DSP_PRESENT=1U
)
endfunction()