driver.mk 712 B

123456789101112131415161718192021
  1. ifeq ($(USE_HAL_I2C_FALLBACK),yes)
  2. # Fallback SW driver.
  3. ifeq ($(USE_SMART_BUILD),yes)
  4. ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),)
  5. PLATFORMSRC += $(CHIBIOS)/os/hal/lib/fallback/I2C/hal_i2c_lld.c
  6. endif
  7. else
  8. PLATFORMSRC += $(CHIBIOS)/os/hal/lib/fallback/I2C/hal_i2c_lld.c
  9. endif
  10. PLATFORMINC += $(CHIBIOS)/os/hal/lib/fallback/I2C
  11. else
  12. # Default HW driver.
  13. ifeq ($(USE_SMART_BUILD),yes)
  14. ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),)
  15. PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv1/hal_i2c_lld.c
  16. endif
  17. else
  18. PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv1/hal_i2c_lld.c
  19. endif
  20. PLATFORMINC += $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv1
  21. endif