Non blocking SPI DMA – Added callback to the SPI DMA functions (dmaSend, dmaTransfer…)
victor_pv Tue Feb 21, 2017 8:05 pm
Working code in this post, and an explanation how to modify sdFat to use it in the next post after that:
http://www.stm32duino.com/viewtopic.php … =60#p30306
======================================================
This is something Roger has suggested several times, and it seems to only make sense.
Currently the dma TX/RX functions we added to the SPI library block until the DMA transfer is completed or has timed out.
This change would add 2 functions to the SPI library, similar to the Arduino official I2S library:
onTransmit(handler);
onReceive(handler);
