add cmake support for g0, exlicitly call HAL_Init() and also HAL_IncTick() in systick irq, fix button active state.

This commit is contained in:
hathach
2023-06-01 15:58:02 +07:00
parent af59864ab5
commit 6b44d8fb55
6 changed files with 169 additions and 16 deletions

View File

@@ -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 ()