diff options
| author | hathach <[email protected]> | 2023-06-02 13:27:18 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-06-02 13:27:18 +0700 |
| commit | fcf77914546496d88d5915223095d93bb63c67fe (patch) | |
| tree | 2169b5f5378afb1b3286d92b978ff563bbe0d70b /tools/cmake/cpu | |
| parent | e7090c75148820ff3a4ad60c718684c46c954c18 (diff) | |
add IAR support for G0 with cmake
Diffstat (limited to 'tools/cmake/cpu')
| -rw-r--r-- | tools/cmake/cpu/cortex-m0plus.cmake | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/cmake/cpu/cortex-m0plus.cmake b/tools/cmake/cpu/cortex-m0plus.cmake index 1e316ccfc..bc2257048 100644 --- a/tools/cmake/cpu/cortex-m0plus.cmake +++ b/tools/cmake/cpu/cortex-m0plus.cmake @@ -1,11 +1,17 @@ if (TOOLCHAIN STREQUAL "gcc") - list(APPEND TOOLCHAIN_COMMON_FLAGS + set(TOOLCHAIN_COMMON_FLAGS -mthumb -mcpu=cortex-m0plus -mfloat-abi=soft ) set(FREERTOS_PORT GCC_ARM_CM0 CACHE INTERNAL "") -else () - # TODO support IAR + +elseif (TOOLCHAIN STREQUAL "iar") + set(TOOLCHAIN_COMMON_FLAGS + --cpu cortex-m0 + ) + + set(FREERTOS_PORT IAR_ARM_CM0 CACHE INTERNAL "") + endif () |
