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