2013-09-08 08:28:27 +00:00
|
|
|
# List of all the STM32F37x platform files.
|
2015-05-08 14:04:32 +00:00
|
|
|
ifeq ($(USE_SMART_BUILD),yes)
|
|
|
|
HALCONF := $(strip $(shell cat halconf.h | egrep -e "define"))
|
|
|
|
|
|
|
|
PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32F37x/hal_lld.c \
|
2015-09-21 11:01:37 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c \
|
2016-04-02 08:54:40 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/hal_st_lld.c
|
2015-05-08 14:04:32 +00:00
|
|
|
ifneq ($(findstring HAL_USE_ADC TRUE,$(HALCONF)),)
|
2016-04-02 08:54:40 +00:00
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/STM32F37x/hal_adc_lld.c
|
2015-05-08 14:04:32 +00:00
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_CAN TRUE,$(HALCONF)),)
|
2016-04-02 08:54:40 +00:00
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/CANv1/hal_can_lld.c
|
2015-05-08 14:04:32 +00:00
|
|
|
endif
|
2015-05-13 13:15:29 +00:00
|
|
|
ifneq ($(findstring HAL_USE_DAC TRUE,$(HALCONF)),)
|
2016-04-02 08:54:40 +00:00
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/DACv1/hal_dac_lld.c
|
2015-05-13 13:15:29 +00:00
|
|
|
endif
|
2015-07-28 11:44:32 +00:00
|
|
|
ifneq ($(findstring HAL_USE_EXT TRUE,$(HALCONF)),)
|
2016-04-02 08:54:40 +00:00
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1/hal_ext_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32F37x/hal_ext_lld_isr.c
|
2015-07-28 11:44:32 +00:00
|
|
|
endif
|
2015-05-08 14:04:32 +00:00
|
|
|
ifneq ($(findstring HAL_USE_PAL TRUE,$(HALCONF)),)
|
2016-04-02 08:54:40 +00:00
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv2/hal_pal_lld.c
|
2015-05-08 14:04:32 +00:00
|
|
|
endif
|
2015-05-12 08:39:25 +00:00
|
|
|
ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),)
|
2016-04-02 08:54:40 +00:00
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv2/hal_i2c_lld.c
|
2015-05-08 14:04:32 +00:00
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_RTC TRUE,$(HALCONF)),)
|
2016-04-02 08:54:40 +00:00
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2/hal_rtc_lld.c
|
2015-05-08 14:04:32 +00:00
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_SPI TRUE,$(HALCONF)),)
|
2016-04-02 08:54:40 +00:00
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.c
|
2015-05-08 14:04:32 +00:00
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_GPT TRUE,$(HALCONF)),)
|
2016-04-02 08:54:40 +00:00
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/hal_gpt_lld.c
|
2015-05-08 14:04:32 +00:00
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_ICU TRUE,$(HALCONF)),)
|
2016-04-02 08:54:40 +00:00
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/hal_icu_lld.c
|
2015-05-08 14:04:32 +00:00
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_PWM TRUE,$(HALCONF)),)
|
2016-04-02 08:54:40 +00:00
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/hal_pwm_lld.c
|
2015-05-08 14:04:32 +00:00
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_SERIAL TRUE,$(HALCONF)),)
|
2016-04-02 08:54:40 +00:00
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.c
|
2015-05-08 14:04:32 +00:00
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_UART TRUE,$(HALCONF)),)
|
2016-04-02 08:54:40 +00:00
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.c
|
2015-05-08 14:04:32 +00:00
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_USB TRUE,$(HALCONF)),)
|
2016-04-02 08:54:40 +00:00
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.c
|
2015-05-08 14:04:32 +00:00
|
|
|
endif
|
2015-12-03 16:09:32 +00:00
|
|
|
ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),)
|
2016-04-02 08:54:40 +00:00
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/hal_wdg_lld.c
|
2015-12-03 16:09:32 +00:00
|
|
|
endif
|
2015-05-08 14:04:32 +00:00
|
|
|
else
|
|
|
|
PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32F37x/hal_lld.c \
|
2016-04-02 08:54:40 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32F37x/hal_adc_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32F37x/hal_ext_lld_isr.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/CANv1/hal_can_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/DACv1/hal_dac_lld.c \
|
2015-09-21 11:01:37 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c \
|
2016-04-02 08:54:40 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1/hal_ext_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv2/hal_pal_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv2/hal_i2c_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2/hal_rtc_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/hal_gpt_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/hal_icu_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/hal_pwm_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/hal_st_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/hal_wdg_lld.c
|
2015-05-08 14:04:32 +00:00
|
|
|
endif
|
2013-09-08 08:28:27 +00:00
|
|
|
|
|
|
|
# Required include directories
|
2015-05-08 14:04:32 +00:00
|
|
|
PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32F37x \
|
2015-07-28 11:44:32 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/CANv1 \
|
2015-05-13 13:15:29 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/DACv1 \
|
2015-09-21 11:01:37 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv1 \
|
2015-07-28 11:44:32 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1 \
|
2015-05-08 14:04:32 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv2 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv2 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2 \
|
2015-12-03 16:09:32 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1
|