platform.mk 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Required platform files.
  2. PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
  3. $(CHIBIOS)/os/hal/ports/STM32/STM32F3xx/stm32_isr.c \
  4. $(CHIBIOS)/os/hal/ports/STM32/STM32F3xx/hal_lld.c
  5. # Required include directories.
  6. PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
  7. $(CHIBIOS)/os/hal/ports/STM32/STM32F3xx
  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/DACv1/driver.mk
  25. include $(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv1/driver.mk
  26. include $(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1/driver.mk
  27. include $(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv2/driver.mk
  28. include $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv2/driver.mk
  29. include $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2/driver.mk
  30. include $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2/driver.mk
  31. include $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/driver.mk
  32. include $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/driver.mk
  33. include $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/driver.mk
  34. include $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/driver.mk
  35. # Shared variables
  36. ALLCSRC += $(PLATFORMSRC)
  37. ALLINC += $(PLATFORMINC)