From 1f38b8574d81fc0539783cda2c3d9b2fdd30815a Mon Sep 17 00:00:00 2001 From: Joy Date: Mon, 25 Apr 2022 15:27:52 +0800 Subject: [PATCH] Update driver.mk --- os/hal/ports/WB32/LLD/UARTv1/driver.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/os/hal/ports/WB32/LLD/UARTv1/driver.mk b/os/hal/ports/WB32/LLD/UARTv1/driver.mk index d06d4a81..b82a29b4 100644 --- a/os/hal/ports/WB32/LLD/UARTv1/driver.mk +++ b/os/hal/ports/WB32/LLD/UARTv1/driver.mk @@ -1,9 +1,13 @@ 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)),) -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 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 PLATFORMINC_CONTRIB += $(CHIBIOS_CONTRIB)/os/hal/ports/WB32/LLD/UARTv1