2015-09-28 10:38:41 +00:00
|
|
|
# List of all the STM32L4xx platform files.
|
|
|
|
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/STM32L4xx/hal_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/st_lld.c
|
|
|
|
ifneq ($(findstring HAL_USE_ADC TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/ADCv3/adc_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_CAN TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/CANv1/can_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_DAC TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/DACv1/dac_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_EXT TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1/ext_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32L4xx/ext_lld_isr.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_PAL TRUE,$(HALCONF)),)
|
2015-11-12 16:28:17 +00:00
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv3/pal_lld.c
|
2015-09-28 10:38:41 +00:00
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv2/i2c_lld.c
|
|
|
|
endif
|
2015-11-15 08:29:17 +00:00
|
|
|
ifneq ($(findstring HAL_USE_USB TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c
|
|
|
|
endif
|
2015-09-28 10:38:41 +00:00
|
|
|
ifneq ($(findstring HAL_USE_RTC TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_SPI TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2/spi_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_GPT TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/gpt_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_ICU TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/icu_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_PWM TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/pwm_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_SERIAL TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/serial_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_UART TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/uart_lld.c
|
|
|
|
endif
|
2015-12-03 16:09:32 +00:00
|
|
|
ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
|
|
|
|
endif
|
2015-09-28 10:38:41 +00:00
|
|
|
else
|
|
|
|
PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32L4xx/hal_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32L4xx/ext_lld_isr.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/ADCv3/adc_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/CANv1/can_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/DACv1/dac_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1/ext_lld.c \
|
2015-11-12 16:28:17 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv3/pal_lld.c \
|
2015-09-28 10:38:41 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv2/i2c_lld.c \
|
2015-11-15 08:29:17 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c \
|
2015-09-28 10:38:41 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2/spi_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/gpt_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/icu_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/pwm_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/st_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/serial_lld.c \
|
2015-12-03 16:09:32 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/uart_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
|
2015-09-28 10:38:41 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Required include directories
|
|
|
|
PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32L4xx \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/ADCv3 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/CANv1 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/DACv1 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv1 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1 \
|
2015-11-12 16:28:17 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv3 \
|
2015-09-28 10:38:41 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv2 \
|
2015-11-15 08:29:17 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/OTGv1 \
|
2015-09-28 10:38:41 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1 \
|
2015-12-03 16:09:32 +00:00
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1
|