mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-03 16:21:57 +00:00
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: Derek Hageman <hageman@inthat.cloud>
13 lines
292 B
Plaintext
13 lines
292 B
Plaintext
# Kconfig - Atmel SAM0 SERCOM SPI
|
|
#
|
|
# Copyright (c) 2017 Google LLC.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig SPI_SAM0
|
|
bool "Atmel SAM0 series SERCOM SPI driver"
|
|
default y
|
|
depends on SOC_FAMILY_SAM0
|
|
select DMA if SPI_ASYNC
|
|
help
|
|
Enable support for the SAM0 SERCOM SPI driver.
|