platform.mk 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Required platform files.
  2. PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
  3. $(CHIBIOS)/os/hal/ports/STM32/STM32H7xx/stm32_isr.c \
  4. $(CHIBIOS)/os/hal/ports/STM32/STM32H7xx/hal_lld.c
  5. # Required include directories.
  6. PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
  7. $(CHIBIOS)/os/hal/ports/STM32/STM32H7xx
  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/ADCv4/driver.mk
  23. include $(CHIBIOS)/os/hal/ports/STM32/LLD/BDMAv1/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/DMAv2/driver.mk
  27. include $(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv2/driver.mk
  28. include $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv3/driver.mk
  29. include $(CHIBIOS)/os/hal/ports/STM32/LLD/OTGv1/driver.mk
  30. include $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv3/driver.mk
  31. include $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2/driver.mk
  32. include $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/driver.mk
  33. include $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/driver.mk
  34. include $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/driver.mk
  35. include $(CHIBIOS)/os/hal/ports/STM32/LLD/SDMMCv2/driver.mk
  36. # Shared variables
  37. ALLCSRC += $(PLATFORMSRC)
  38. ALLINC += $(PLATFORMINC)