This commit is contained in:
rusefillc 2023-05-23 18:22:48 -04:00
parent d09ec18648
commit fab13dd5d2
5 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# shameless copy-paste of startup_ke1xf.mk
STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c
STARTUPASM = $(ARTERY_CONTRIB)/os/common/startup/ARMCMx/compilers/GCC/startup_at32f435.S \
$(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S \
$(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.S
STARTUPINC = $(ARTERY_CONTRIB)/os/common/startup/ARMCMx/devices/AT32F435 \
$(ARTERY_CONTRIB)/os/common/ext/CMSIS/ARTERY \
$(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC \
$(CHIBIOS)/os/common/ext/CMSIS/include \
$(CHIBIOS)/os/common/ext/ARM/CMSIS/Core/Include
STARTUPLD_KINETIS = $(KINETIS_CONTRIB)/os/common/startup/ARMCMx/compilers/GCC/ld
STARTUPLD = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/ld
# Shared variables
ALLXASMSRC += $(STARTUPASM)
ALLCSRC += $(STARTUPSRC)
ALLINC += $(STARTUPINC)

View File

@ -0,0 +1 @@

View File

1
config.mk Normal file
View File

@ -0,0 +1 @@
ARTERY_CONTRIB = $(BOARD_DIR)/OS

3
custom_platform.mk Normal file
View File

@ -0,0 +1,3 @@
CPU_STARTUP_DIR = $(ARTERY_CONTRIB)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_at32f435.mk
CPU_PLATFORM = $(ARTERY_CONTRIB)/os/hal/ports/ARTERY/AT32F435.mk
CPU_HWLAYER = ports/artery