driver.mk 509 B

12345678910111213
  1. ifeq ($(USE_SMART_BUILD),yes)
  2. ifneq ($(findstring HAL_USE_SERIAL TRUE,$(HALCONF)),)
  3. PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.c
  4. endif
  5. ifneq ($(findstring HAL_USE_UART TRUE,$(HALCONF)),)
  6. PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.c
  7. endif
  8. else
  9. PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.c
  10. PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.c
  11. endif
  12. PLATFORMINC += $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2