Skip to content
Commit d68666fc authored by Derek Hageman's avatar Derek Hageman Committed by Anas Nashif
Browse files

drivers: spi: sam0: Implement DMA async API



This adds support for the async API for SAM0 SERCOM SPI using
DMA to drive the device.  This implementation does the reload
for both transmit and receive in the receive DMA handler.
Doing this simplifies the implementation but means that the
transmit drains completely, resulting in the SPI clock pausing
between buffers while both are reloaded in the receive handler.

Tested with tests/drivers/spi/spi_loopback and several simple
programs monitored with a logic analyzer.

Signed-off-by: default avatarDerek Hageman <hageman@inthat.cloud>
parent 4b2a181a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment