bsps/atsam: Fix unidirectional SPI transfers

A SPI transfer where the Rx or Tx buffer is set to NULL currently
transfers or overwrites data starting from address 0x00000000 via DMA.

This patch changes the DMA setup so that dummy transfers are done.
Just reading / writing to a single location is simpler than changing the
whole logic of the transfer depending on the passed buffers.
This commit is contained in:
Christian Mauderer committed 2022-12-15 09:20:52 +01:00
1 parent 1c189e1aa7
commit 26050b5fb4
1 file changed
+131 -57
File diff suppressed because it is too large. Load diff