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