You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.9 KiB
Makefile
51 lines
1.9 KiB
Makefile
# Required platform files.
|
|
PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32H7xx/stm32_isr.c \
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32H7xx/hal_lld.c
|
|
|
|
# Required include directories.
|
|
PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32H7xx
|
|
|
|
# Optional platform files.
|
|
ifeq ($(USE_SMART_BUILD),yes)
|
|
|
|
# Configuration files directory
|
|
ifeq ($(HALCONFDIR),)
|
|
ifeq ($(CONFDIR),)
|
|
HALCONFDIR = .
|
|
else
|
|
HALCONFDIR := $(CONFDIR)
|
|
endif
|
|
endif
|
|
|
|
HALCONF := $(strip $(shell cat $(HALCONFDIR)/halconf.h | egrep -e "\#define"))
|
|
|
|
else
|
|
endif
|
|
|
|
# Drivers compatible with the platform.
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/ADCv4/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/BDMAv1/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/CRYPv1/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/DACv1/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv2/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/FDCANv1/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv2/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv3/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/MDMAv1/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/OTGv1/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/QUADSPIv2/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/SDMMCv2/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv3/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/RNGv1/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/driver.mk
|
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/driver.mk
|
|
|
|
# Shared variables
|
|
ALLCSRC += $(PLATFORMSRC)
|
|
ALLINC += $(PLATFORMINC)
|