Skip to content

Commit

Permalink
move custom envs
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jun 9, 2023
1 parent 68223f3 commit dd43774
Show file tree
Hide file tree
Showing 4 changed files with 239 additions and 290 deletions.
237 changes: 237 additions & 0 deletions ini/ender3s1.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,237 @@
#
# Marlin Firmware
# PlatformIO Configuration File

#
# Ender-3 S1 (F1)
#

[STM32F103RE_creality_e3s1]
extends = env:STM32F103RE_creality
build_flags = ${STM32F103Rx_creality.build_flags}
-DMOTHERBOARD=BOARD_CREALITY_V24S1_301
-DENDER_MACHINE_OVERRIDE
-DUSER_STM32F103=1

[env:STM32F103RE_creality_e3s1_abl5x5]
extends = STM32F103RE_creality_e3s1
build_flags = ${STM32F103RE_creality_e3s1.build_flags}
-DENDER_3S1
-DAUTO_BED_LEVELING_BILINEAR
-DBLTOUCH_HS_MODE=true
-DMESH_INSET_X=27 -DMESH_INSET_Y=45
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1-abl5x5-F1.py

#
# Ender-3 S1 Pro (F1)
#

[STM32F103RE_creality_e3s1pro]
extends = STM32F103RE_creality_e3s1
build_flags = ${STM32F103RE_creality_e3s1.build_flags}
-DENDER_3S1_PRO

[env:STM32F103RE_creality_e3s1pro_abl5x5]
extends = STM32F103RE_creality_e3s1pro
build_flags = ${STM32F103RE_creality_e3s1pro.build_flags}
-DAUTO_BED_LEVELING_BILINEAR
-DBLTOUCH_HS_MODE=true
-DPROBING_MARGIN=45
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1pro-abl5x5-F1.py

[STM32F103RE_creality_e3s1pro_ubl]
extends = STM32F103RE_creality_e3s1pro
build_flags = ${STM32F103RE_creality_e3s1pro.build_flags}
-DAUTO_BED_LEVELING_UBL
-DBLTOUCH_HS_MODE=true
-DMESH_INSET_X=27 -DMESH_INSET_Y=45
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1pro-ubl5x5-F1.py

[env:STM32F103RE_creality_e3s1pro_ubl5x5]
extends = STM32F103RE_creality_e3s1pro_ubl
build_flags = ${STM32F103RE_creality_e3s1pro_ubl.build_flags}
-DGRID_MAX_POINTS_X=5

[env:STM32F103RE_creality_e3s1pro_ubl7x7]
extends = STM32F103RE_creality_e3s1pro_ubl
build_flags = ${STM32F103RE_creality_e3s1pro_ubl.build_flags}
-DGRID_MAX_POINTS_X=7

[env:STM32F103RE_creality_e3s1pro_ubl10x10]
extends = STM32F103RE_creality_e3s1pro_ubl
build_flags = ${STM32F103RE_creality_e3s1pro_ubl.build_flags}
-DGRID_MAX_POINTS_X=10

#
# Ender-3 S1 Plus (F1)
#

[STM32F103RE_creality_e3s1plus]
extends = STM32F103RE_creality_e3s1
build_flags = ${STM32F103RE_creality_e3s1.build_flags}
-DENDER_3S1_PLUS

[env:STM32F103RE_creality_e3s1plus_abl5x5]
extends = STM32F103RE_creality_e3s1plus
build_flags = ${STM32F103RE_creality_e3s1plus.build_flags}
-DAUTO_BED_LEVELING_BILINEAR
-DBLTOUCH_HS_MODE=true
-DPROBING_MARGIN=45
extra_scripts = ${STM32F103RE_creality_e3s1plus.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1plus-abl5x5-F1.py

[STM32F103RE_creality_e3s1plus_ubl]
extends = STM32F103RE_creality_e3s1plus
build_flags = ${STM32F103RE_creality_e3s1plus.build_flags}
-DAUTO_BED_LEVELING_UBL
-DMESH_INSET_X=27 -DMESH_INSET_Y=45

[env:STM32F103RE_creality_e3s1plus_ubl5x5]
extends = STM32F103RE_creality_e3s1plus_ubl
build_flags = ${STM32F103RE_creality_e3s1plus_ubl.build_flags}
-DGRID_MAX_POINTS_X=5
-DBLTOUCH_HS_MODE=true
extra_scripts = ${STM32F103RE_creality_e3s1plus_ubl.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1plus-ubl5x5-F1.py

[env:STM32F103RE_creality_e3s1plus_ubl7x7]
extends = STM32F103RE_creality_e3s1plus_ubl
build_flags = ${STM32F103RE_creality_e3s1plus_ubl.build_flags}
-DGRID_MAX_POINTS_X=7
extra_scripts = ${STM32F103RE_creality_e3s1plus_ubl.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1plus-ubl7x7-F1.py

[env:STM32F103RE_creality_e3s1plus_ubl10x10]
extends = STM32F103RE_creality_e3s1plus_ubl
build_flags = ${STM32F103RE_creality_e3s1plus_ubl.build_flags}
-DGRID_MAX_POINTS_X=10
extra_scripts = ${STM32F103RE_creality_e3s1plus_ubl.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1plus-ubl10x10-F1.py

#
# Ender-3 S1 (F4)
#

[STM32F401RC_creality_e3s1]
extends = env:STM32F401RC_creality
build_flags = ${stm32_variant.build_flags} -DMCU_STM32F401RC -DSTM32F4
-DMOTHERBOARD=BOARD_CREALITY_V24S1_301F4
-DSS_TIMER=4 -DTIMER_SERVO=TIM5
-DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
-DENDER_MACHINE_OVERRIDE
-DUSER_STM32F401=1

[env:STM32F401RC_creality_e3s1_abl5x5]
extends = STM32F401RC_creality_e3s1
build_flags = ${STM32F401RC_creality_e3s1.build_flags}
-DENDER_3S1
-DAUTO_BED_LEVELING_BILINEAR
-DBLTOUCH_HS_MODE=true
-DMESH_INSET_X=27 -DMESH_INSET_Y=45
extra_scripts = ${STM32F401RC_creality_e3s1.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1-abl5x5-F4.py

#
# Ender-3 S1 Pro (F4)
#

[STM32F401RC_creality_e3s1pro]
extends = STM32F401RC_creality_e3s1
build_flags = ${STM32F401RC_creality_e3s1.build_flags}
-DENDER_3S1_PRO

[env:STM32F401RC_creality_e3s1pro_abl5x5]
extends = STM32F401RC_creality_e3s1pro
build_flags = ${STM32F401RC_creality_e3s1pro.build_flags}
-DAUTO_BED_LEVELING_BILINEAR
-DGRID_MAX_POINTS_X=5
-DBLTOUCH_HS_MODE=true
-DPROBING_MARGIN=45
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1pro-abl5x5-F4.py

[env:STM32F401RC_creality_e3s1pro_abl5x5_personal]
extends = env:STM32F401RC_creality_e3s1pro_abl5x5
build_flags = ${env:STM32F401RC_creality_e3s1pro_abl5x5.build_flags}
-DPERSONAL_BUILD
-DFILAMENT_RUNOUT_SENSOR_DEBUG
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1pro-abl5x5-personal-F4.py

[STM32F401RC_creality_e3s1pro_ubl]
extends = STM32F401RC_creality_e3s1pro
build_flags = ${STM32F401RC_creality_e3s1pro.build_flags}
-DAUTO_BED_LEVELING_UBL
-DMESH_INSET_X=27 -DMESH_INSET_Y=45

[env:STM32F401RC_creality_e3s1pro_ubl5x5]
extends = STM32F401RC_creality_e3s1pro_ubl
build_flags = ${STM32F401RC_creality_e3s1pro_ubl.build_flags}
-DGRID_MAX_POINTS_X=5
-DBLTOUCH_HS_MODE=true
extra_scripts = ${STM32F401RC_creality_e3s1pro_ubl.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1pro-ubl5x5-F4.py

[env:STM32F401RC_creality_e3s1pro_ubl7x7]
extends = STM32F401RC_creality_e3s1pro_ubl
build_flags = ${STM32F401RC_creality_e3s1pro_ubl.build_flags}
-DGRID_MAX_POINTS_X=7
extra_scripts = ${STM32F401RC_creality_e3s1pro_ubl.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1pro-ubl7x7-F4.py

[env:STM32F401RC_creality_e3s1pro_ubl10x10]
extends = STM32F401RC_creality_e3s1pro_ubl
build_flags = ${STM32F401RC_creality_e3s1pro_ubl.build_flags}
-DGRID_MAX_POINTS_X=10
-DBLTOUCH_HS_MODE=true
extra_scripts = ${STM32F401RC_creality_e3s1pro_ubl.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1pro-ubl10x10-F4.py

#
# Ender-3 S1 Plus (F4)
#

[STM32F401RC_creality_e3s1plus]
extends = STM32F401RC_creality_e3s1
build_flags = ${STM32F401RC_creality_e3s1.build_flags}
-DENDER_3S1_PLUS

[env:STM32F401RC_creality_e3s1plus_abl5x5]
extends = STM32F401RC_creality_e3s1plus
build_flags = ${STM32F401RC_creality_e3s1plus.build_flags}
-DAUTO_BED_LEVELING_BILINEAR
-DBLTOUCH_HS_MODE=true
-DPROBING_MARGIN=45
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1plus-abl5x5-F4.py

[STM32F401RC_creality_e3s1plus_ubl]
extends = STM32F401RC_creality_e3s1plus
build_flags = ${STM32F401RC_creality_e3s1plus.build_flags}
-DAUTO_BED_LEVELING_UBL
-DMESH_INSET_X=27 -DMESH_INSET_Y=45

[env:STM32F401RC_creality_e3s1plus_ubl5x5]
extends = STM32F401RC_creality_e3s1plus_ubl
build_flags = ${STM32F401RC_creality_e3s1plus_ubl.build_flags}
-DGRID_MAX_POINTS_X=5
-DBLTOUCH_HS_MODE=true
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1plus-ubl5x5-F4.py

[env:STM32F401RC_creality_e3s1plus_ubl7x7]
extends = STM32F401RC_creality_e3s1plus_ubl
build_flags = ${STM32F401RC_creality_e3s1plus_ubl.build_flags}
-DGRID_MAX_POINTS_X=7
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1plus-ubl7x7-F4.py

[env:STM32F401RC_creality_e3s1plus_ubl10x10]
extends = STM32F401RC_creality_e3s1plus_ubl
build_flags = ${STM32F401RC_creality_e3s1plus_ubl.build_flags}
-DGRID_MAX_POINTS_X=7
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1plus-ubl10x10-F4.py
130 changes: 1 addition & 129 deletions ini/stm32f1.ini
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,14 @@ debug_tool = stlink
extends = stm32_variant
board_build.variant = MARLIN_F103Rx
board_build.offset = 0x7000
board_build.rename = firmware-{date}
board_upload.offset_address = 0x08007000
build_flags = ${stm32_variant.build_flags}
-DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED
-DSS_TIMER=4 -DTIMER_SERVO=TIM5
-DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
build_unflags = ${stm32_variant.build_unflags}
-DUSBCON -DUSBD_USE_CDC
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin.py
monitor_speed = 115200
debug_tool = jlink
upload_protocol = jlink
Expand Down Expand Up @@ -170,133 +169,6 @@ extends = env:STM32F103RE_creality
board_build.offset = 0x10000
board_upload.offset_address = 0x08010000

[env:STM32F103RE_creality_e3s1pro_abl5x5]
extends = env:STM32F103RE_creality
build_flags = ${STM32F103Rx_creality.build_flags}
-DENDER_MACHINE_OVERRIDE
-DENDER_3S1_PRO
-DAUTO_BED_LEVELING_BILINEAR
-DBLTOUCH_HS_MODE=true
-DUSER_STM32F103=1
-DMOTHERBOARD=BOARD_CREALITY_V24S1_301
-DPROBING_MARGIN=45
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1pro-abl5x5-F1.py

[env:STM32F103RE_creality_e3s1pro_ubl5x5]
extends = env:STM32F103RE_creality
build_flags = ${STM32F103Rx_creality.build_flags}
-DENDER_MACHINE_OVERRIDE
-DENDER_3S1_PRO
-DAUTO_BED_LEVELING_UBL
-DGRID_MAX_POINTS_X=5
-DBLTOUCH_HS_MODE=true
-DUSER_STM32F103=1
-DMOTHERBOARD=BOARD_CREALITY_V24S1_301
-DMESH_INSET_X=27
-DMESH_INSET_Y=45
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1pro-ubl5x5-F1.py

[env:STM32F103RE_creality_e3s1pro_ubl7x7]
extends = env:STM32F103RE_creality
build_flags = ${STM32F103Rx_creality.build_flags}
-DENDER_MACHINE_OVERRIDE
-DENDER_3S1_PRO
-DAUTO_BED_LEVELING_UBL
-DGRID_MAX_POINTS_X=7
-DUSER_STM32F103=1
-DMOTHERBOARD=BOARD_CREALITY_V24S1_301
-DMESH_INSET_X=27
-DMESH_INSET_Y=45
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1pro-ubl7x7-F1.py


[env:STM32F103RE_creality_e3s1pro_ubl10x10]
extends = env:STM32F103RE_creality
build_flags = ${STM32F103Rx_creality.build_flags}
-DENDER_MACHINE_OVERRIDE
-DENDER_3S1_PRO
-DAUTO_BED_LEVELING_UBL
-DGRID_MAX_POINTS_X=10
-DUSER_STM32F103=1
-DMOTHERBOARD=BOARD_CREALITY_V24S1_301
-DMESH_INSET_X=27
-DMESH_INSET_Y=45
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1pro-ubl10x10-F1.py

[env:STM32F103RE_creality_e3s1plus_abl5x5]
extends = env:STM32F103RE_creality
build_flags = ${STM32F103Rx_creality.build_flags}
-DENDER_MACHINE_OVERRIDE
-DENDER_3S1_PLUS
-DAUTO_BED_LEVELING_BILINEAR
-DBLTOUCH_HS_MODE=true
-DUSER_STM32F103=1
-DMOTHERBOARD=BOARD_CREALITY_V24S1_301
-DPROBING_MARGIN=45
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1plus-abl5x5-F1.py

[env:STM32F103RE_creality_e3s1plus_ubl5x5]
extends = env:STM32F103RE_creality
build_flags = ${STM32F103Rx_creality.build_flags}
-DENDER_MACHINE_OVERRIDE
-DENDER_3S1_PLUS
-DAUTO_BED_LEVELING_UBL
-DGRID_MAX_POINTS_X=5
-DBLTOUCH_HS_MODE=true
-DUSER_STM32F103=1
-DMOTHERBOARD=BOARD_CREALITY_V24S1_301
-DMESH_INSET_X=27
-DMESH_INSET_Y=45
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1plus-ubl5x5-F1.py

[env:STM32F103RE_creality_e3s1plus_ubl7x7]
extends = env:STM32F103RE_creality
build_flags = ${STM32F103Rx_creality.build_flags}
-DENDER_MACHINE_OVERRIDE
-DENDER_3S1_PLUS
-DAUTO_BED_LEVELING_UBL
-DGRID_MAX_POINTS_X=10
-DUSER_STM32F103=1
-DMOTHERBOARD=BOARD_CREALITY_V24S1_301
-DMESH_INSET_X=27
-DMESH_INSET_Y=45
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1plus-ubl7x7-F1.py

[env:STM32F103RE_creality_e3s1plus_ubl10x10]
extends = env:STM32F103RE_creality
build_flags = ${STM32F103Rx_creality.build_flags}
-DENDER_MACHINE_OVERRIDE
-DENDER_3S1_PLUS
-DAUTO_BED_LEVELING_UBL
-DGRID_MAX_POINTS_X=10
-DUSER_STM32F103=1
-DMOTHERBOARD=BOARD_CREALITY_V24S1_301
-DMESH_INSET_X=27
-DMESH_INSET_Y=45
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1plus-ubl10x10-F1.py

[env:STM32F103RE_creality_e3s1_abl5x5]
extends = env:STM32F103RE_creality
build_flags = ${STM32F103Rx_creality.build_flags}
-DENDER_MACHINE_OVERRIDE
-DENDER_3S1_PRO
-DAUTO_BED_LEVELING_BILINEAR
-DBLTOUCH_HS_MODE=true
-DUSER_STM32F103=1
-DMOTHERBOARD=BOARD_CREALITY_V24S1_301
-DMESH_INSET_X=27
-DMESH_INSET_Y=45
extra_scripts = ${stm32_variant.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/random-bin-e3s1-abl5x5-F1.py

#
# Trigorilla V0.0.6 (GD32F103)
# modified version of env:STM32F103RE_creality
Expand Down
Loading

0 comments on commit dd43774

Please sign in to comment.