diff options
| author | Ha Thach <[email protected]> | 2023-06-25 13:48:00 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-25 13:48:00 +0700 |
| commit | eb53680a067d0ed3a57c457ee762a408b1afaaed (patch) | |
| tree | 57b89fdcbb400a645be3032a71ca417a9116d7b5 /tools/cmake | |
| parent | 50e61e0e16122a2466536d77b858cb228d60d0c2 (diff) | |
| parent | 06d93e95d15b7b6fad4cde608a25c1b50776ec3e (diff) | |
Merge pull request #2124 from hathach/refactor-make-build
Refactor make build
Diffstat (limited to 'tools/cmake')
| -rw-r--r-- | tools/cmake/cpu/cortex-m0.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/cmake/cpu/cortex-m0.cmake b/tools/cmake/cpu/cortex-m0.cmake new file mode 100644 index 000000000..bc2257048 --- /dev/null +++ b/tools/cmake/cpu/cortex-m0.cmake @@ -0,0 +1,17 @@ +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 "iar") + set(TOOLCHAIN_COMMON_FLAGS + --cpu cortex-m0 + ) + + set(FREERTOS_PORT IAR_ARM_CM0 CACHE INTERNAL "") + +endif () |
