2013-10-01 10:26:35 +00:00
|
|
|
# List of all the STM32F1xx 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/STM32F1xx/stm32_dma.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32F1xx/hal_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/st_lld.c
|
|
|
|
ifneq ($(findstring HAL_USE_ADC TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/STM32F1xx/adc_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_EXT TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/STM32F1xx/ext_lld_isr.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/ext_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_CAN TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/can_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_MAC TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/mac_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_SDC TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/sdc_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_PAL TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv1/pal_lld.c
|
|
|
|
endif
|
2015-05-12 08:39:25 +00:00
|
|
|
ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),)
|
2015-05-08 14:04:32 +00:00
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_RTC TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv1/rtc_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_SPI TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv1/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/USARTv1/serial_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_UART TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1/uart_lld.c
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring HAL_USE_USB TRUE,$(HALCONF)),)
|
|
|
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/usb_lld.c
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32F1xx/stm32_dma.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32F1xx/hal_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32F1xx/adc_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/STM32F1xx/ext_lld_isr.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/can_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/ext_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/mac_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/sdc_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv1/pal_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv1/rtc_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv1/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/USARTv1/serial_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1/uart_lld.c \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/usb_lld.c
|
|
|
|
endif
|
2013-10-01 10:26:35 +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/STM32F1xx \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv1 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv1 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv1 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv1 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1 \
|
|
|
|
$(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1
|
2013-10-01 10:26:35 +00:00
|
|
|
|