machine: use larger SPI MAXCNT on nrf52833 and nrf52840

These chips have a larger upper limit for the DMA transfer than the
nrf52832. For best performance, we should be splitting the transfer in
as large blocks as possible on the given hardware.
This commit is contained in:
Ayke van Laethem
2025-10-21 10:11:49 +02:00
committed by Ron Evans
parent 26ee3fb93e
commit 8a31ae14a0
4 changed files with 13 additions and 9 deletions
+2
View File
@@ -69,3 +69,5 @@ const eraseBlockSizeValue = 4096
func eraseBlockSize() int64 {
return eraseBlockSizeValue
}
const spiMaxBufferSize = 255 // from the datasheet: TXD.MAXCNT and RXD.MAXCNT