diff options
| author | hathach <[email protected]> | 2023-06-01 15:58:02 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-06-01 15:58:02 +0700 |
| commit | 6b44d8fb55345e19fd82a6169258fbf357a15f81 (patch) | |
| tree | cb0ba130893425b672488dfe5a55093cb228a08d /tools | |
| parent | af59864ab51d43b0308df617097949b399c5d112 (diff) | |
add cmake support for g0, exlicitly call HAL_Init() and also HAL_IncTick() in systick irq, fix button active state.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/cmake/cpu/cortex-m0plus.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/cmake/cpu/cortex-m0plus.cmake b/tools/cmake/cpu/cortex-m0plus.cmake new file mode 100644 index 000000000..1e316ccfc --- /dev/null +++ b/tools/cmake/cpu/cortex-m0plus.cmake @@ -0,0 +1,11 @@ +if (TOOLCHAIN STREQUAL "gcc") + list(APPEND TOOLCHAIN_COMMON_FLAGS + -mthumb + -mcpu=cortex-m0plus + -mfloat-abi=soft + ) + + set(FREERTOS_PORT GCC_ARM_CM0 CACHE INTERNAL "") +else () + # TODO support IAR +endif () |
