platform.mk 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Required platform files.
  2. PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
  3. $(CHIBIOS)/os/hal/ports/STM32/STM32L4xx/stm32_isr.c \
  4. $(CHIBIOS)/os/hal/ports/STM32/STM32L4xx/hal_lld.c
  5. # Required include directories.
  6. PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
  7. $(CHIBIOS)/os/hal/ports/STM32/STM32L4xx
  8. # Optional platform files.
  9. ifeq ($(USE_SMART_BUILD),yes)
  10. # Configuration files directory
  11. ifeq ($(HALCONFDIR),)
  12. ifeq ($(CONFDIR),)
  13. HALCONFDIR = .
  14. else
  15. HALCONFDIR := $(CONFDIR)
  16. endif
  17. endif
  18. HALCONF := $(strip $(shell cat $(HALCONFDIR)/halconf.h | egrep -e "\#define"))
  19. else
  20. endif
  21. # Drivers compatible with the platform.
  22. include $(CHIBIOS)/os/hal/ports/STM32/LLD/ADCv3/driver.mk
  23. include $(CHIBIOS)/os/hal/ports/STM32/LLD/CANv1/driver.mk
  24. include $(CHIBIOS)/os/hal/ports/STM32/LLD/CRYPv1/driver.mk
  25. include $(CHIBIOS)/os/hal/ports/STM32/LLD/DACv1/driver.mk
  26. include $(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv1/driver.mk
  27. include $(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1/driver.mk
  28. include $(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv3/driver.mk
  29. include $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv2/driver.mk
  30. include $(CHIBIOS)/os/hal/ports/STM32/LLD/OTGv1/driver.mk
  31. include $(CHIBIOS)/os/hal/ports/STM32/LLD/QUADSPIv1/driver.mk
  32. include $(CHIBIOS)/os/hal/ports/STM32/LLD/RNGv1/driver.mk
  33. include $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2/driver.mk
  34. include $(CHIBIOS)/os/hal/ports/STM32/LLD/SDMMCv1/driver.mk
  35. include $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2/driver.mk
  36. include $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/driver.mk
  37. include $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/driver.mk
  38. include $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/driver.mk
  39. # Shared variables
  40. ALLCSRC += $(PLATFORMSRC)
  41. ALLINC += $(PLATFORMINC)