14 lines
487 B
Makefile
14 lines
487 B
Makefile
|
ifeq ($(USE_SMART_BUILD),yes)
|
||
|
ifneq ($(findstring HAL_USE_I2S TRUE,$(HALCONF)),)
|
||
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2/hal_i2s_lld.c
|
||
|
endif
|
||
|
ifneq ($(findstring HAL_USE_SPI TRUE,$(HALCONF)),)
|
||
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.c
|
||
|
endif
|
||
|
else
|
||
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2/hal_i2s_lld.c
|
||
|
PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.c
|
||
|
endif
|
||
|
|
||
|
PLATFORMINC += $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2
|