stm32-common.ini 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. # Marlin Firmware
  3. # PlatformIO Configuration File
  4. #
  5. ####################################
  6. #
  7. # HAL/STM32 Common Environments
  8. #
  9. ####################################
  10. [common_stm32]
  11. platform = ststm32@~12.1
  12. board_build.core = stm32
  13. build_flags = ${common.build_flags} -std=gnu++14
  14. -DHAL_STM32 -DPLATFORM_M997_SUPPORT
  15. -DUSBCON -DUSBD_USE_CDC -DTIM_IRQ_PRIO=13 -DADC_RESOLUTION=12
  16. build_unflags = -std=gnu++11
  17. build_src_filter = ${common.default_src_filter} +<src/HAL/STM32> -<src/HAL/STM32/tft> +<src/HAL/shared/backtrace>
  18. extra_scripts = ${common.extra_scripts}
  19. pre:buildroot/share/PlatformIO/scripts/stm32_serialbuffer.py
  20. custom_marlin.HAS_LTDC_TFT = build_src_filter=+<src/HAL/STM32/tft/tft_ltdc.cpp>
  21. custom_marlin.HAS_FSMC_TFT = build_src_filter=+<src/HAL/STM32/tft/tft_fsmc.cpp>
  22. build_flags=-DHAL_SRAM_MODULE_ENABLED
  23. custom_marlin.HAS_SPI_TFT = build_src_filter=+<src/HAL/STM32/tft/tft_spi.cpp>
  24. custom_marlin.HAS_TFT_XPT2046 = build_src_filter=+<src/HAL/STM32/tft/xpt2046.cpp>
  25. custom_marlin.TFT_TOUCH_DEVICE_GT911 = build_src_filter=+<src/HAL/STM32/tft/gt911.cpp>
  26. #
  27. # STM32 board based on a variant.
  28. #
  29. [stm32_variant]
  30. extends = common_stm32
  31. extra_scripts = ${common_stm32.extra_scripts}
  32. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  33. buildroot/share/PlatformIO/scripts/offset_and_rename.py
  34. #
  35. # USB Flash Drive mix-ins for STM32
  36. #
  37. [stm_flash_drive]
  38. # Arduino_Core_STM32 uses usb-host-msc-cdc-msc-3 branch
  39. platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/39f37d6d6a.zip
  40. build_flags = ${common_stm32.build_flags}
  41. -DHAL_PCD_MODULE_ENABLED -DHAL_HCD_MODULE_ENABLED
  42. -DUSBHOST -DUSBH_IRQ_PRIO=3 -DUSBH_IRQ_SUBPRIO=4