mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
risc-v/esp32c3: Add support for DMA transfers on SPI driver
This commit is contained in:
committed by
Abdelatif Guettouche
parent
132ffdd28d
commit
26a5cb2094
@@ -323,6 +323,29 @@ config ESP32C3_SPI_UDCS
|
||||
|
||||
if ESP32C3_SPI2
|
||||
|
||||
config ESP32C3_SPI2_DMA
|
||||
bool "SPI2 use GDMA"
|
||||
default n
|
||||
depends on ESP32C3_DMA
|
||||
---help---
|
||||
Enable support for transfers using the GDMA engine.
|
||||
|
||||
config ESP32C3_SPI2_DMADESC_NUM
|
||||
int "SPI2 Master GDMA maximum number of descriptors"
|
||||
default 2
|
||||
depends on ESP32C3_SPI2_DMA
|
||||
---help---
|
||||
Configure the maximum number of out-link/in-link descriptors to
|
||||
be chained for a GDMA transfer.
|
||||
|
||||
config ESP32C3_SPI2_DMATHRESHOLD
|
||||
int "SPI2 GDMA threshold"
|
||||
default 64
|
||||
depends on ESP32C3_SPI2_DMA
|
||||
---help---
|
||||
When SPI GDMA is enabled, GDMA transfers whose size are below the
|
||||
defined threshold will be performed by polling logic.
|
||||
|
||||
config ESP32C3_SPI2_CSPIN
|
||||
int "SPI2 CS Pin"
|
||||
default 10
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user