STM32F1: C++14 for static_assert, etc. (#14278)

This commit is contained in:
Tanguy Pruvot 2019-06-13 01:44:32 +02:00 committed by Scott Lahteine
parent 26e7e33698
commit 7d1eafc80a
2 changed files with 9 additions and 7 deletions

View File

@ -9,7 +9,6 @@ if __name__ == "__main__":
"-mcpu=cortex-m3",
"-mthumb",
"-ffreestanding",
"-fsigned-char",
"-fno-move-loop-invariants",
"-fno-strict-aliasing",

View File

@ -258,7 +258,8 @@ platform = ststm32
framework = arduino
board = genericSTM32F103RE
build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
${common.build_flags}
${common.build_flags} -std=gnu++14
build_unflags = -std=gnu++11
lib_deps = ${common.lib_deps}
lib_ignore = U8glib-HAL
c1921b4
@ -268,7 +269,7 @@ lib_ignore = U8glib-HAL
Adafruit NeoPixel
libf3e
TMC26XStepper
lib_ldf_mode = 1
#lib_ldf_mode = 1
src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
monitor_speed = 250000
@ -281,8 +282,9 @@ framework = arduino
board = genericSTM32F103RC
extra_scripts = buildroot/share/PlatformIO/scripts/STM32F1_SKR_MINI.py
build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
${common.build_flags}
${common.build_flags} -std=gnu++14
-g
build_unflags = -std=gnu++11
lib_deps = ${common.lib_deps}
lib_ignore = U8glib-HAL
c1921b4
@ -292,7 +294,7 @@ lib_ignore = U8glib-HAL
Adafruit NeoPixel
libf3e
TMC26XStepper
lib_ldf_mode = 1
#lib_ldf_mode = 1
src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
monitor_speed = 115200
upload_protocol = stlink
@ -328,13 +330,14 @@ monitor_speed = 250000
# MKS Robin (STM32F103ZET6)
#
[env:mks_robin]
platform = ststm32@5.3.0
platform = ststm32
framework = arduino
board = genericSTM32F103ZE
extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin.py
build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
${common.build_flags}
${common.build_flags} -std=gnu++14
-DSTM32_XL_DENSITY
build_unflags = -std=gnu++11
src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
lib_deps = ${common.lib_deps}
lib_ignore = c1921b4