diff options
| author | hathach <[email protected]> | 2023-06-02 15:26:16 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-06-02 15:26:16 +0700 |
| commit | bb795e6a5eededff57f18336c11b84f5470d4e4e (patch) | |
| tree | 3fd2a74be648324ffe04426bc2f56a9505af9d23 /tools/cmake/cpu/cortex-m3.cmake | |
| parent | fcf77914546496d88d5915223095d93bb63c67fe (diff) | |
update cmake to build with IAR for g0 and g4
Diffstat (limited to 'tools/cmake/cpu/cortex-m3.cmake')
| -rw-r--r-- | tools/cmake/cpu/cortex-m3.cmake | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/cmake/cpu/cortex-m3.cmake b/tools/cmake/cpu/cortex-m3.cmake index b740ee44c..f6f5a62f8 100644 --- a/tools/cmake/cpu/cortex-m3.cmake +++ b/tools/cmake/cpu/cortex-m3.cmake @@ -1,10 +1,16 @@ if (TOOLCHAIN STREQUAL "gcc") - list(APPEND TOOLCHAIN_COMMON_FLAGS + set(TOOLCHAIN_COMMON_FLAGS -mthumb -mcpu=cortex-m3 ) set(FREERTOS_PORT GCC_ARM_CM3 CACHE INTERNAL "") -else () - # TODO support IAR + +elseif (TOOLCHAIN STREQUAL "iar") + set(TOOLCHAIN_COMMON_FLAGS + --cpu cortex-m3 + ) + + set(FREERTOS_PORT IAR_ARM_CM3 CACHE INTERNAL "") + endif () |
