-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Refactor STM32 ini files (#22377)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
- Loading branch information
1 parent
6b73b6c
commit 7773504
Showing
9 changed files
with
411 additions
and
423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# | ||
# Marlin Firmware | ||
# PlatformIO Configuration File | ||
# | ||
|
||
#################################### | ||
# | ||
# HAL/STM32 Common Environments | ||
# | ||
#################################### | ||
|
||
[common_stm32] | ||
platform = ststm32@~12.1 | ||
board_build.core = stm32 | ||
build_flags = ${common.build_flags} | ||
-std=gnu++14 | ||
-DUSBCON -DUSBD_USE_CDC | ||
-DTIM_IRQ_PRIO=13 | ||
-DADC_RESOLUTION=12 | ||
build_unflags = -std=gnu++11 | ||
src_filter = ${common.default_src_filter} +<src/HAL/STM32> +<src/HAL/shared/backtrace> | ||
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 | ||
buildroot/share/PlatformIO/scripts/offset_and_rename.py | ||
|
||
# | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.