summaryrefslogtreecommitdiff
path: root/examples/build_system/cmake/cpu/cortex-m0.cmake
blob: 62019d90d4237d2f957b41c20ff7648f95683592 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if (TOOLCHAIN STREQUAL "gcc")
  set(TOOLCHAIN_COMMON_FLAGS
    -mthumb
    -mcpu=cortex-m0plus
    -mfloat-abi=soft
    )
  set(FREERTOS_PORT GCC_ARM_CM0 CACHE INTERNAL "")

elseif (TOOLCHAIN STREQUAL "clang")
  set(TOOLCHAIN_COMMON_FLAGS
    --target=arm-none-eabi
    -mcpu=cortex-m0
    )
  set(FREERTOS_PORT GCC_ARM_CM0 CACHE INTERNAL "")

elseif (TOOLCHAIN STREQUAL "iar")
  set(TOOLCHAIN_COMMON_FLAGS
    --cpu cortex-m0
    )
  set(FREERTOS_PORT IAR_ARM_CM0 CACHE INTERNAL "")

endif ()