File tree Expand file tree Collapse file tree 18 files changed +45
-9
lines changed Expand file tree Collapse file tree 18 files changed +45
-9
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
39
39
"--cpu=Cortex-A9"
40
40
)
41
41
endif ()
42
+ endfunction ()
42
43
44
+ function (mbed_set_cpu_core_definitions target )
43
45
target_compile_definitions (${target}
44
46
INTERFACE
45
47
__CORTEX_A9
Original file line number Diff line number Diff line change @@ -35,7 +35,9 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
35
35
"--cpu=Cortex-M0plus"
36
36
)
37
37
endif ()
38
+ endfunction ()
38
39
40
+ function (mbed_set_cpu_core_definitions target )
39
41
target_compile_definitions (${target}
40
42
INTERFACE
41
43
__CORTEX_M0PLUS
Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
34
34
"-cpu=Cortex-M0"
35
35
)
36
36
endif ()
37
+ endfunction ()
37
38
39
+ function (mbed_set_cpu_core_definitions target )
38
40
target_compile_definitions (${target}
39
41
INTERFACE
40
42
__CORTEX_M0
Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
34
34
"--cpu=Cortex-M1"
35
35
)
36
36
endif ()
37
+ endfunction ()
37
38
39
+ function (mbed_set_cpu_core_definitions target )
38
40
target_compile_definitions (${target}
39
41
INTERFACE
40
42
__CORTEX_M3
Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
34
34
"--cpu=Cortex-M23"
35
35
)
36
36
endif ()
37
+ endfunction ()
37
38
39
+ function (mbed_set_cpu_core_definitions target )
38
40
target_compile_definitions (${target}
39
41
INTERFACE
40
42
__CORTEX_M23
Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
34
34
"--cpu=Cortex-M23"
35
35
)
36
36
endif ()
37
+ endfunction ()
37
38
39
+ function (mbed_set_cpu_core_definitions target )
38
40
target_compile_definitions (${target}
39
41
INTERFACE
40
42
__CORTEX_M23
Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
34
34
"--cpu=Cortex-M3"
35
35
)
36
36
endif ()
37
+ endfunction ()
37
38
39
+ function (mbed_set_cpu_core_definitions target )
38
40
target_compile_definitions (${target}
39
41
INTERFACE
40
42
__CORTEX_M3
Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
36
36
"--cpu=Cortex-M33.no_dsp.no_fp"
37
37
)
38
38
endif ()
39
+ endfunction ()
39
40
41
+ function (mbed_set_cpu_core_definitions target )
40
42
target_compile_definitions (${target}
41
43
INTERFACE
42
44
__CORTEX_M33
Original file line number Diff line number Diff line change @@ -38,7 +38,9 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
38
38
"--cpu=Cortex-M33.no_dsp.no_fp"
39
39
)
40
40
endif ()
41
+ endfunction ()
41
42
43
+ function (mbed_set_cpu_core_definitions target )
42
44
target_compile_definitions (${target}
43
45
INTERFACE
44
46
__CORTEX_M33
Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
39
39
"--cpu=Cortex-M33.no_dsp"
40
40
)
41
41
endif ()
42
+ endfunction ()
42
43
44
+ function (mbed_set_cpu_core_definitions target )
43
45
target_compile_definitions (${target}
44
46
INTERFACE
45
47
__CORTEX_M33
Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
39
39
"--cpu=Cortex-M33.no_dsp"
40
40
)
41
41
endif ()
42
+ endfunction ()
42
43
44
+ function (mbed_set_cpu_core_definitions target )
43
45
target_compile_definitions (${target}
44
46
INTERFACE
45
47
__CORTEX_M33
Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
37
37
"--cpu=Cortex-M33"
38
38
)
39
39
endif ()
40
+ endfunction ()
40
41
42
+ function (mbed_set_cpu_core_definitions target )
41
43
target_compile_definitions (${target}
42
44
INTERFACE
43
45
__CORTEX_M33
Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
37
37
"--cpu=Cortex-M33"
38
38
)
39
39
endif ()
40
+ endfunction ()
40
41
42
+ function (mbed_set_cpu_core_definitions target )
41
43
target_compile_definitions (${target}
42
44
INTERFACE
43
45
__CORTEX_M33
Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
36
36
"--cpu=Cortex-M4.no_fp"
37
37
)
38
38
endif ()
39
+ endfunction ()
39
40
41
+ function (mbed_set_cpu_core_definitions target )
40
42
target_compile_definitions (${target}
41
43
INTERFACE
42
44
__CORTEX_M4
Original file line number Diff line number Diff line change 3
3
4
4
# Sets cpu core options
5
5
function (mbed_set_cpu_core_options target mbed_toolchain )
6
- target_compile_definitions (${target}
7
- INTERFACE
8
- __CORTEX_M4
9
- ARM_MATH_CM4
10
- __FPU_PRESENT=1
11
- __CMSIS_RTOS
12
- __MBED_CMSIS_RTOS_CM
13
- )
14
-
15
6
if (${mbed_toolchain} STREQUAL "GCC_ARM" )
16
7
list (APPEND common_toolchain_options
17
8
"-mthumb"
@@ -49,3 +40,14 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
49
40
)
50
41
endif ()
51
42
endfunction ()
43
+
44
+ function (mbed_set_cpu_core_definitions target )
45
+ target_compile_definitions (${target}
46
+ INTERFACE
47
+ __CORTEX_M4
48
+ ARM_MATH_CM4
49
+ __FPU_PRESENT=1
50
+ __CMSIS_RTOS
51
+ __MBED_CMSIS_RTOS_CM
52
+ )
53
+ endfunction ()
Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
36
36
"--cpu=Cortex-M7.no_fp"
37
37
)
38
38
endif ()
39
+ endfunction ()
39
40
41
+ function (mbed_set_cpu_core_definitions target )
40
42
target_compile_definitions (${target}
41
43
INTERFACE
42
44
__CORTEX_M7
Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
39
39
"--cpu=Cortex-M7.fp.sp"
40
40
)
41
41
endif ()
42
+ endfunction ()
42
43
44
+ function (mbed_set_cpu_core_definitions target )
43
45
target_compile_definitions (${target}
44
46
INTERFACE
45
47
__CORTEX_M7
Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ function(mbed_set_cpu_core_options target mbed_toolchain)
39
39
"--cpu=Cortex-M7"
40
40
)
41
41
endif ()
42
+ endfunction ()
42
43
44
+ function (mbed_set_cpu_core_definitions target )
43
45
target_compile_definitions (${target}
44
46
INTERFACE
45
47
__CORTEX_M7
You can’t perform that action at this time.
0 commit comments