3 # PlatformIO Configuration File
6 #################################
10 # Naming Example: STM32F070CBT6
13 # 0 : Cortex M0 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
15 # C : 48 pins (R:64 or 66, F:20)
16 # B : 128KB Flash-memory (C:256KB, D:384KB, E:512KB, G:1024KB)
18 # 6 : -40...85°C (7: ...105°C)
20 #################################
23 # Malyan M200 v2 (STM32F070RB)
25 [env:STM32F070RB_malyan]
26 extends = common_stm32
27 board = marlin_malyanM200v2
28 build_flags = ${common_stm32.build_flags} -DHAL_PCD_MODULE_ENABLED
29 -O2
-ffreestanding
-fsigned
-char
-fno
-move
-loop
-invariants
30 -fno
-strict
-aliasing
-DCUSTOM_STARTUP_FILE
33 # Malyan M200 v2 (STM32F070CB)
35 [env:STM32F070CB_malyan]
36 extends = common_stm32
37 board = malyanm200_f070cb
38 build_flags = ${common_stm32.build_flags}
39 -DHAL_PCD_MODULE_ENABLED
-DDISABLE_GENERIC_SERIALUSB
40 -DHAL_UART_MODULE_ENABLED
-DCUSTOM_STARTUP_FILE
43 # Malyan M300 (STM32F070CB)
46 extends = common_stm32
47 board = malyanm300_f070cb
48 build_flags = ${common_stm32.build_flags}
49 -DHAL_PCD_MODULE_ENABLED
-DDISABLE_GENERIC_SERIALUSB
50 -DHAL_UART_MODULE_ENABLED
51 build_src_filter = ${common.default_src_filter} +<src/HAL/STM32>