summaryrefslogtreecommitdiff
path: root/examples/build_system/cmake/cpu/cortex-m33.cmake
blob: 7ebaf174806f3a16ad67d7a03c10e6b8aaca1002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if (TOOLCHAIN STREQUAL "gcc")
  set(TOOLCHAIN_COMMON_FLAGS
    -mthumb
    -mcpu=cortex-m33
    -mfloat-abi=hard
    -mfpu=fpv5-sp-d16
    )

  set(FREERTOS_PORT GCC_ARM_CM33_NTZ_NONSECURE CACHE INTERNAL "")

elseif (TOOLCHAIN STREQUAL "iar")
  set(TOOLCHAIN_COMMON_FLAGS
    --cpu cortex-m33
    --fpu VFPv5-SP
    )

  set(FREERTOS_PORT IAR_ARM_CM4F CACHE INTERNAL "")

endif ()