Double IO buffer size to 256 (1k bytes) on boards with 96k of RAM or more (or NRF52)

This commit is contained in:
Gordon Williams 2018-09-20 17:19:15 +01:00
parent 6b147b666f
commit e96c97b55b
2 changed files with 10 additions and 2 deletions

View File

@ -81,6 +81,7 @@
Allow E.mapInPlace to merge bits from multiple source elements, also add option for msb/lsb first
Remove Graphics.scroll/drawCircle/fillCircle on devices with low flash to allow builds to fit again
Remove BluetoothRemoteGATTCharacteristic.writeValue on NRF51 (accidental inclusion - it's not required)
Double IO buffer size to 256 (1k bytes) on boards with 96k of RAM or more (or NRF52)
1v99 : Increase jslMatch error buffer size to handle "UNFINISHED TEMPLATE LITERAL" string (#1426)
nRF5x: Make FlashWrite cope with flash writes > 4k

View File

@ -316,8 +316,15 @@ if LINUX:
bufferSizeTX = 256
bufferSizeTimer = 16
else:
bufferSizeIO = 64 if board.chip["ram"]<20 else 128
bufferSizeTX = 32 if board.chip["ram"]<20 else 128
# IO buffer - for received chars, setWatch, etc
bufferSizeIO = 64
if board.chip["ram"]>=20: bufferSizeIO = 128
if board.chip["ram"]>=96: bufferSizeIO = 256
# NRF52 needs this as Bluetooth traffic is funnelled through the buffer
if board.chip["family"]=="NRF52": bufferSizeIO = 256
# TX buffer - for print/write/etc
bufferSizeTX = 32
if board.chip["ram"]>=20: bufferSizeTX = 128
bufferSizeTimer = 4 if board.chip["ram"]<20 else 16
if 'util_timer_tasks' in board.info: