mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-22 22:23:54 -06:00
✨ SAMD21 HAL / Minitronics v2.0 (#24976)
This commit is contained in:
parent
aaae56a650
commit
049cfe659c
47 changed files with 3603 additions and 8 deletions
19
buildroot/share/PlatformIO/scripts/SAMD21_minitronics20.py
Normal file
19
buildroot/share/PlatformIO/scripts/SAMD21_minitronics20.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
#
|
||||
# SAMD21_minitronics20.py
|
||||
# Customizations for env:SAMD21_minitronics20
|
||||
#
|
||||
import pioutil
|
||||
if pioutil.is_pio_build():
|
||||
from os.path import join, isfile
|
||||
import shutil
|
||||
|
||||
Import("env")
|
||||
|
||||
mf = env["MARLIN_FEATURES"]
|
||||
rxBuf = mf["RX_BUFFER_SIZE"] if "RX_BUFFER_SIZE" in mf else "0"
|
||||
txBuf = mf["TX_BUFFER_SIZE"] if "TX_BUFFER_SIZE" in mf else "0"
|
||||
|
||||
serialBuf = str(max(int(rxBuf), int(txBuf), 350))
|
||||
|
||||
build_flags = env.get('BUILD_FLAGS')
|
||||
env.Replace(BUILD_FLAGS=build_flags)
|
Loading…
Add table
Add a link
Reference in a new issue