Skip to content

Commit bb8a75e

Browse files
committed
Simplification - level 2
1 parent 4fa42e7 commit bb8a75e

File tree

4 files changed

+30
-52
lines changed

4 files changed

+30
-52
lines changed

buildroot/share/PlatformIO/scripts/ZONESTAR_ZM3E2.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

buildroot/share/PlatformIO/scripts/ZONESTAR_ZM3E4.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

buildroot/share/PlatformIO/scripts/ZONESTAR_ZM3E4V2.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

ini/stm32f1-maple.ini

Lines changed: 30 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -360,48 +360,38 @@ build_flags = ${common_stm32f1.build_flags}
360360
#
361361
# ZONESTAR ZM3E2 V1.0 / ZM3E4 V1.0 / ZM3E4 V2.0
362362
#
363-
# STM32F103RC_ZM3E2_USB ......... RCT6 with 256K
364-
# STM32F103VC_ZM3E4_USB ......... VCT6 with 256K
365-
# STM32F103VE_ZM3E4V2_USB ......... VET6 with 512K
366-
#
363+
# STM32F103RC_ZM3E2_USB ........... RCT6 with 256K
364+
# STM32F103VC_ZM3E4_USB ........... VCT6 with 256K
365+
# STM32F103VE_ZM3E4V2_USB ......... VET6 with 512K
366+
#
367+
[ZONESTAR_ZM3E]
368+
platform = ${common_stm32f1.platform}
369+
extends = common_stm32f1
370+
platform_packages = tool-stm32duino
371+
board_build.address = 0x08005000
372+
board_upload.maximum_size = 237568
373+
extra_scripts = ${common.extra_scripts}
374+
buildroot/share/PlatformIO/scripts/custom_board.py
375+
build_flags = ${common_stm32f1.build_flags}
376+
-D__STM32F1__=1 -DDEBUG_LEVEL=0 -DSS_TIMER=4 -DSERIAL_USB
377+
lib_deps = USBComposite for STM32F1@0.91
378+
lib_ignore = Adafruit NeoPixel, SPI, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, TMCStepper
379+
367380
[env:STM32F103RC_ZM3E2_USB]
368-
platform = ${common_stm32f1.platform}
369-
extends = common_stm32f1
370-
board = genericSTM32F103RC
371-
platform_packages = tool-stm32duino
372-
board_upload.maximum_size=237568
373-
extra_scripts = ${common.extra_scripts}
374-
buildroot/share/PlatformIO/scripts/ZONESTAR_ZM3E2.py
375-
build_flags = ${common_stm32f1.build_flags}
376-
-DDEBUG_LEVEL=0 -DSS_TIMER=4 -D__STM32F1__=1 -DSERIAL_USB
377-
lib_deps = USBComposite for STM32F1@0.91
378-
lib_ignore = Adafruit NeoPixel, SPI, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, TMCStepper
381+
platform = ${ZONESTAR_ZM3E.platform}
382+
extends = ZONESTAR_ZM3E
383+
board = genericSTM32F103RC
384+
board_build.ldscript = ZONESTAR_ZM3E4V2.ld
379385

380386
[env:STM32F103VC_ZM3E4_USB]
381-
platform = ${common_stm32f1.platform}
382-
extends = common_stm32f1
383-
board = genericSTM32F103VC
384-
platform_packages = tool-stm32duino
385-
board_upload.maximum_size=237568
386-
extra_scripts = ${common.extra_scripts}
387-
buildroot/share/PlatformIO/scripts/ZONESTAR_ZM3E4.py
388-
build_flags = ${common_stm32f1.build_flags}
389-
-DDEBUG_LEVEL=0 -DSS_TIMER=4 -D__STM32F1__=1
390-
-DSERIAL_USB
391-
lib_deps = USBComposite for STM32F1@0.91
392-
lib_ignore = Adafruit NeoPixel, SPI, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, TMCStepper
387+
platform = ${ZONESTAR_ZM3E.platform}
388+
extends = ZONESTAR_ZM3E
389+
board = genericSTM32F103VC
390+
board_build.ldscript = ZONESTAR_ZM3E4.ld
393391

394392
[env:STM32F103VE_ZM3E4V2_USB]
395-
platform = ${common_stm32f1.platform}
396-
extends = common_stm32f1
397-
board = genericSTM32F103VE
398-
platform_packages = tool-stm32duino
399-
board_upload.maximum_size=499712
400-
extra_scripts = ${common.extra_scripts}
401-
buildroot/share/PlatformIO/scripts/ZONESTAR_ZM3E4V2.py
402-
build_flags = ${common_stm32f1.build_flags}
403-
-DDEBUG_LEVEL=0 -D__STM32F1__=1
404-
-DSERIAL_USB
405-
-DSS_TIMER=4
406-
lib_deps = USBComposite for STM32F1@0.91
407-
lib_ignore = Adafruit NeoPixel, SPI, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, TMCStepper
393+
platform = ${ZONESTAR_ZM3E.platform}
394+
extends = ZONESTAR_ZM3E
395+
board = genericSTM32F103VE
396+
board_build.ldscript = ZONESTAR_ZM3E4V2.ld
397+
board_upload.maximum_size = 499712

0 commit comments

Comments
 (0)