Update driver.mk
This commit is contained in:
parent
1f669724c6
commit
1f38b8574d
|
@ -1,9 +1,13 @@
|
||||||
ifeq ($(USE_SMART_BUILD),yes)
|
ifeq ($(USE_SMART_BUILD),yes)
|
||||||
|
ifneq ($(findstring HAL_USE_SERIAL TRUE,$(HALCONF)),)
|
||||||
|
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/WB32/LLD/UARTv1/hal_serial_lld.c
|
||||||
|
endif
|
||||||
ifneq ($(findstring HAL_USE_UART TRUE,$(HALCONF)),)
|
ifneq ($(findstring HAL_USE_UART TRUE,$(HALCONF)),)
|
||||||
PLATFORMSRC_CONTRIB += $(CHIBIOS_CONTRIB)/os/hal/ports/WB32/LLD/UARTv1/hal_uart_lld.c
|
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/WB32/LLD/UARTv1/hal_uart_lld.c
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
PLATFORMSRC_CONTRIB += $(CHIBIOS_CONTRIB)/os/hal/ports/WB32/LLD/UARTv1/hal_uart_lld.c
|
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/WB32/LLD/UARTv1/hal_serial_lld.c
|
||||||
|
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/WB32/LLD/UARTv1/hal_uart_lld.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
PLATFORMINC_CONTRIB += $(CHIBIOS_CONTRIB)/os/hal/ports/WB32/LLD/UARTv1
|
PLATFORMINC_CONTRIB += $(CHIBIOS_CONTRIB)/os/hal/ports/WB32/LLD/UARTv1
|
||||||
|
|
Loading…
Reference in New Issue