2021-04-01 21:53:19 -05:00
|
|
|
#
|
|
|
|
# Marlin Firmware
|
|
|
|
# PlatformIO Configuration File
|
|
|
|
#
|
|
|
|
|
|
|
|
#################################
|
2021-04-18 14:07:30 -05:00
|
|
|
#
|
|
|
|
# STM32F0 Architecture
|
|
|
|
#
|
|
|
|
# Naming Example: STM32F070CBT6
|
|
|
|
#
|
|
|
|
# F : Foundation
|
2021-08-08 21:31:10 -05:00
|
|
|
# 0 : Cortex M0 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
|
2021-04-18 14:07:30 -05:00
|
|
|
# 70 : Line/Features
|
|
|
|
# C : 48 pins (R:64 or 66, F:20)
|
|
|
|
# B : 128KB Flash-memory (C:256KB, D:384KB, E:512KB, G:1024KB)
|
|
|
|
# T : LQFP package
|
|
|
|
# 6 : -40...85°C (7: ...105°C)
|
|
|
|
#
|
2021-04-01 21:53:19 -05:00
|
|
|
#################################
|
|
|
|
|
|
|
|
#
|
|
|
|
# Malyan M200 v2 (STM32F070RB)
|
|
|
|
#
|
|
|
|
[env:STM32F070RB_malyan]
|
|
|
|
extends = common_stm32
|
2021-04-27 04:49:21 -05:00
|
|
|
board = marlin_malyanM200v2
|
2021-04-01 21:53:19 -05:00
|
|
|
build_flags = ${common_stm32.build_flags} -DHAL_PCD_MODULE_ENABLED
|
2021-07-20 14:20:28 -05:00
|
|
|
-O2 -ffreestanding -fsigned-char -fno-move-loop-invariants
|
|
|
|
-fno-strict-aliasing -DCUSTOM_STARTUP_FILE
|
2021-04-01 21:53:19 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Malyan M200 v2 (STM32F070CB)
|
|
|
|
#
|
|
|
|
[env:STM32F070CB_malyan]
|
|
|
|
extends = common_stm32
|
|
|
|
board = malyanm200_f070cb
|
|
|
|
build_flags = ${common_stm32.build_flags}
|
2021-07-20 14:20:28 -05:00
|
|
|
-DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB
|
|
|
|
-DHAL_UART_MODULE_ENABLED -DCUSTOM_STARTUP_FILE
|
2021-04-01 21:53:19 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Malyan M300 (STM32F070CB)
|
|
|
|
#
|
|
|
|
[env:malyan_M300]
|
|
|
|
extends = common_stm32
|
|
|
|
board = malyanm300_f070cb
|
|
|
|
build_flags = ${common_stm32.build_flags}
|
2021-07-20 14:20:28 -05:00
|
|
|
-DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB
|
|
|
|
-DHAL_UART_MODULE_ENABLED
|
2021-04-01 21:53:19 -05:00
|
|
|
src_filter = ${common.default_src_filter} +<src/HAL/STM32>
|