File tree Expand file tree Collapse file tree 18 files changed +66
-63
lines changed Expand file tree Collapse file tree 18 files changed +66
-63
lines changed Original file line number Diff line number Diff line change @@ -6,17 +6,17 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
66 list (APPEND common_options
77 "-mthumb"
88 "-mcpu=cortex-m0plus"
9- )
9+ )
1010elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
1111 list (APPEND c_cxx_compile_options
1212 "-mcpu=cortex-m0plus"
13- )
13+ )
1414 list (APPEND asm_compile_options
1515 "-mcpu=Cortex-M0plus"
16- )
16+ )
1717 list (APPEND link_options
1818 "--cpu=Cortex-M0plus"
19- )
19+ )
2020endif ()
2121
2222function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change 44# Sets cpu core options
55if (${MBED_TOOLCHAIN} STREQUAL "GCC_ARM" )
66 list (APPEND common_options
7- "-mthumb" )
7+ "-mthumb"
8+ )
89elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
910 list (APPEND c_cxx_compile_options
1011 "-mcpu=cortex-m1"
11- )
12+ )
1213 list (APPEND asm_compile_options
1314 "-mcpu=Cortex-M1"
14- )
15+ )
1516 list (APPEND link_options
1617 "--cpu=Cortex-M1"
17- )
18+ )
1819endif ()
1920
2021function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change 55if (${MBED_TOOLCHAIN} STREQUAL "GCC_ARM" )
66 list (APPEND common_options
77 "-mthumb"
8- )
8+ )
99elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
1010 list (APPEND c_cxx_compile_options
1111 "-mcpu=cortex-m23"
12- )
12+ )
1313 list (APPEND asm_compile_options
1414 "-mcpu=Cortex-M23"
15- )
15+ )
1616 list (APPEND link_options
1717 "--cpu=Cortex-M23"
18- )
18+ )
1919endif ()
2020
2121
Original file line number Diff line number Diff line change 44# Sets cpu core options
55if (${MBED_TOOLCHAIN} STREQUAL "GCC_ARM" )
66 list (APPEND common_options
7- "-mthumb" )
7+ "-mthumb"
8+ )
89elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
910 list (APPEND c_cxx_compile_options
1011 "-mcpu=cortex-m3"
11- )
12+ )
1213 list (APPEND asm_compile_options
1314 "-mcpu=Cortex-M3"
14- )
15+ )
1516 list (APPEND link_options
1617 "--cpu=Cortex-M3"
17- )
18+ )
1819endif ()
1920
2021function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change @@ -6,18 +6,18 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
66 list (APPEND common_options
77 "-mthumb"
88 "-march=armv8-m.main"
9- )
9+ )
1010elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
1111 list (APPEND c_cxx_compile_options
1212 "-mcpu=cortex-m33+nodsp"
1313 "-mfpu=none"
14- )
14+ )
1515 list (APPEND asm_compile_options
1616 "-mcpu=Cortex-M33.no_dsp.no_fp"
17- )
17+ )
1818 list (APPEND link_options
1919 "--cpu=Cortex-M33.no_dsp.no_fp"
20- )
20+ )
2121endif ()
2222
2323function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1111 list (APPEND c_cxx_compile_options
1212 "-mcpu=cortex-m33+nodsp"
1313 "-mfpu=none"
14- )
14+ )
1515 list (APPEND asm_compile_options
1616 "-mcpu=Cortex-M33.no_dsp.no_fp"
17- )
17+ )
1818 list (APPEND link_options
1919 "--cpu=Cortex-M33.no_dsp.no_fp"
20- )
20+ )
2121endif ()
2222
2323function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change @@ -8,19 +8,19 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
88 "-mfpu=fpv5-sp-d16"
99 "-mfloat-abi=softfp"
1010 "-march=armv8-m.main"
11- )
11+ )
1212elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
1313 list (APPEND c_cxx_compile_options
1414 "-mcpu=cortex-m33+nodsp"
1515 "-mfpu=fpv5-sp-d16"
1616 "-mfloat-abi=hard"
17- )
17+ )
1818 list (APPEND asm_compile_options
1919 "-mcpu=Cortex-M33.no_dsp"
20- )
20+ )
2121 list (APPEND link_options
2222 "--cpu=Cortex-M33.no_dsp"
23- )
23+ )
2424endif ()
2525
2626
Original file line number Diff line number Diff line change @@ -8,19 +8,19 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
88 "-mfpu=fpv5-sp-d16"
99 "-mfloat-abi=softfp"
1010 "-march=armv8-m.main"
11- )
11+ )
1212elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
1313 list (APPEND c_cxx_compile_options
1414 "-mcpu=cortex-m33+nodsp"
1515 "-mfpu=fpv5-sp-d16"
1616 "-mfloat-abi=hard"
17- )
17+ )
1818 list (APPEND asm_compile_options
1919 "-mcpu=Cortex-M33.no_dsp"
20- )
20+ )
2121 list (APPEND link_options
2222 "--cpu=Cortex-M33.no_dsp"
23- )
23+ )
2424endif ()
2525
2626function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change @@ -8,17 +8,17 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
88 "-mfpu=fpv5-sp-d16"
99 "-mfloat-abi=softfp"
1010 "-march=armv8-m.main+dsp"
11- )
11+ )
1212elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
1313 list (APPEND c_cxx_compile_options
1414 "-mcpu=cortex-m33"
15- )
15+ )
1616 list (APPEND asm_compile_options
1717 "-mcpu=Cortex-M33"
18- )
18+ )
1919 list (APPEND link_options
2020 "--cpu=Cortex-M33"
21- )
21+ )
2222endif ()
2323
2424function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change @@ -8,17 +8,17 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
88 "-mfpu=fpv5-sp-d16"
99 "-mfloat-abi=softfp"
1010 "-march=armv8-m.main+dsp"
11- )
11+ )
1212elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
1313 list (APPEND c_cxx_compile_options
1414 "-mcpu=cortex-m33"
15- )
15+ )
1616 list (APPEND asm_compile_options
1717 "-mcpu=Cortex-M33"
18- )
18+ )
1919 list (APPEND link_options
2020 "--cpu=Cortex-M33"
21- )
21+ )
2222endif ()
2323
2424function (mbed_set_cpu_core_definitions target )
You can’t perform that action at this time.
0 commit comments