Let libmaple accept RX/TX_BUFFER_SIZE (#21177)
This commit is contained in:
parent
f003e52009
commit
0cc03f912c
|
@ -27,3 +27,15 @@ if env.MarlinFeatureIsEnabled("POSTMORTEM_DEBUGGING"):
|
||||||
print("Done patching exception handler")
|
print("Done patching exception handler")
|
||||||
|
|
||||||
print("Libmaple modified and ready for post mortem debugging")
|
print("Libmaple modified and ready for post mortem debugging")
|
||||||
|
|
||||||
|
rxBuf = env["MARLIN_FEATURES"]["RX_BUFFER_SIZE"] if "RX_BUFFER_SIZE" in env["MARLIN_FEATURES"] else "0"
|
||||||
|
txBuf = env["MARLIN_FEATURES"]["TX_BUFFER_SIZE"] if "TX_BUFFER_SIZE" in env["MARLIN_FEATURES"] else "0"
|
||||||
|
if int(rxBuf) < 64:
|
||||||
|
rxBuf = "64"
|
||||||
|
|
||||||
|
if int(txBuf) < 64:
|
||||||
|
txBuf = "64"
|
||||||
|
|
||||||
|
build_flags = env.get('BUILD_FLAGS')
|
||||||
|
build_flags.append("-DUSART_RX_BUF_SIZE=" + rxBuf + " -DUSART_TX_BUF_SIZE=" + txBuf)
|
||||||
|
env.Replace(BUILD_FLAGS=build_flags)
|
||||||
|
|
|
@ -753,7 +753,7 @@ lib_deps = ${common.lib_deps}
|
||||||
SoftwareSerialM
|
SoftwareSerialM
|
||||||
platform_packages = tool-stm32duino
|
platform_packages = tool-stm32duino
|
||||||
extra_scripts = ${common.extra_scripts}
|
extra_scripts = ${common.extra_scripts}
|
||||||
buildroot/share/PlatformIO/scripts/fix_framework_weakness.py
|
pre:buildroot/share/PlatformIO/scripts/fix_framework_weakness.py
|
||||||
|
|
||||||
#
|
#
|
||||||
# STM32F103RC
|
# STM32F103RC
|
||||||
|
@ -795,7 +795,7 @@ upload_protocol = dfu
|
||||||
[env:STM32F103RC_fysetc]
|
[env:STM32F103RC_fysetc]
|
||||||
platform = ${common_stm32f1.platform}
|
platform = ${common_stm32f1.platform}
|
||||||
extends = env:STM32F103RC
|
extends = env:STM32F103RC
|
||||||
extra_scripts = ${common.extra_scripts}
|
extra_scripts = ${common_stm32f1.extra_scripts}
|
||||||
buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
|
buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
|
||||||
build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0
|
build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0
|
||||||
lib_ldf_mode = chain
|
lib_ldf_mode = chain
|
||||||
|
@ -819,7 +819,7 @@ upload_protocol = serial
|
||||||
[env:STM32F103RC_btt]
|
[env:STM32F103RC_btt]
|
||||||
platform = ${common_stm32f1.platform}
|
platform = ${common_stm32f1.platform}
|
||||||
extends = env:STM32F103RC
|
extends = env:STM32F103RC
|
||||||
extra_scripts = ${common.extra_scripts}
|
extra_scripts = ${common_stm32f1.extra_scripts}
|
||||||
buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
|
buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
|
||||||
build_flags = ${common_stm32f1.build_flags}
|
build_flags = ${common_stm32f1.build_flags}
|
||||||
-DDEBUG_LEVEL=0 -DSS_TIMER=4
|
-DDEBUG_LEVEL=0 -DSS_TIMER=4
|
||||||
|
@ -861,7 +861,7 @@ monitor_speed = 115200
|
||||||
[env:STM32F103RE_btt]
|
[env:STM32F103RE_btt]
|
||||||
platform = ${common_stm32f1.platform}
|
platform = ${common_stm32f1.platform}
|
||||||
extends = env:STM32F103RE
|
extends = env:STM32F103RE
|
||||||
extra_scripts = ${common.extra_scripts}
|
extra_scripts = ${common_stm32f1.extra_scripts}
|
||||||
buildroot/share/PlatformIO/scripts/STM32F103RE_SKR_E3_DIP.py
|
buildroot/share/PlatformIO/scripts/STM32F103RE_SKR_E3_DIP.py
|
||||||
build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
|
build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
|
||||||
debug_tool = stlink
|
debug_tool = stlink
|
||||||
|
@ -951,7 +951,7 @@ build_flags = ${common_stm32f1.build_flags}
|
||||||
platform = ${common_stm32f1.platform}
|
platform = ${common_stm32f1.platform}
|
||||||
extends = common_stm32f1
|
extends = common_stm32f1
|
||||||
board = genericSTM32F103VE
|
board = genericSTM32F103VE
|
||||||
extra_scripts = ${common.extra_scripts}
|
extra_scripts = ${common_stm32f1.extra_scripts}
|
||||||
buildroot/share/PlatformIO/scripts/mks_robin_nano35.py
|
buildroot/share/PlatformIO/scripts/mks_robin_nano35.py
|
||||||
build_flags = ${common_stm32f1.build_flags}
|
build_flags = ${common_stm32f1.build_flags}
|
||||||
-DMCU_STM32F103VE -DSS_TIMER=4
|
-DMCU_STM32F103VE -DSS_TIMER=4
|
||||||
|
@ -1019,7 +1019,7 @@ platform = ${common_stm32f1.platform}
|
||||||
extends = common_stm32f1
|
extends = common_stm32f1
|
||||||
board = genericSTM32F103RC
|
board = genericSTM32F103RC
|
||||||
platform_packages = tool-stm32duino
|
platform_packages = tool-stm32duino
|
||||||
extra_scripts = ${common.extra_scripts}
|
extra_scripts = ${common_stm32f1.extra_scripts}
|
||||||
buildroot/share/PlatformIO/scripts/mks_robin_e3.py
|
buildroot/share/PlatformIO/scripts/mks_robin_e3.py
|
||||||
build_flags = ${common_stm32f1.build_flags}
|
build_flags = ${common_stm32f1.build_flags}
|
||||||
-DDEBUG_LEVEL=0 -DSS_TIMER=4
|
-DDEBUG_LEVEL=0 -DSS_TIMER=4
|
||||||
|
|
Loading…
Reference in a new issue