2021-07-20 14:20:28 -05:00
|
|
|
#
|
|
|
|
# Marlin Firmware
|
|
|
|
# PlatformIO Configuration File
|
|
|
|
#
|
|
|
|
|
|
|
|
####################################
|
|
|
|
#
|
|
|
|
# HAL/STM32 Common Environments
|
|
|
|
#
|
|
|
|
####################################
|
|
|
|
|
|
|
|
[common_stm32]
|
|
|
|
platform = ststm32@~12.1
|
|
|
|
board_build.core = stm32
|
|
|
|
build_flags = ${common.build_flags}
|
2021-08-08 21:31:10 -05:00
|
|
|
-std=gnu++14 -DHAL_STM32
|
2021-07-20 14:20:28 -05:00
|
|
|
-DUSBCON -DUSBD_USE_CDC
|
|
|
|
-DTIM_IRQ_PRIO=13
|
2022-02-17 18:50:31 -06:00
|
|
|
-DADC_RESOLUTION=12
|
2021-07-20 14:20:28 -05:00
|
|
|
build_unflags = -std=gnu++11
|
2022-05-19 09:15:57 -05:00
|
|
|
build_src_filter = ${common.default_src_filter} +<src/HAL/STM32> +<src/HAL/shared/backtrace>
|
2021-07-20 14:20:28 -05:00
|
|
|
extra_scripts = ${common.extra_scripts}
|
|
|
|
pre:buildroot/share/PlatformIO/scripts/stm32_serialbuffer.py
|
|
|
|
|
|
|
|
#
|
|
|
|
# STM32 board based on a variant.
|
|
|
|
#
|
|
|
|
[stm32_variant]
|
|
|
|
extends = common_stm32
|
|
|
|
extra_scripts = ${common_stm32.extra_scripts}
|
|
|
|
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
2021-08-01 14:43:31 -05:00
|
|
|
buildroot/share/PlatformIO/scripts/offset_and_rename.py
|
2021-07-20 14:20:28 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# USB Flash Drive mix-ins for STM32
|
|
|
|
#
|
|
|
|
[stm_flash_drive]
|
|
|
|
platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-3.zip
|
|
|
|
build_flags = ${common_stm32.build_flags}
|
|
|
|
-DHAL_PCD_MODULE_ENABLED -DHAL_HCD_MODULE_ENABLED
|
|
|
|
-DUSBHOST -DUSBH_IRQ_PRIO=3 -DUSBH_IRQ_SUBPRIO=4
|