donghengqaz commented on a change in pull request #1610:
URL: https://github.com/apache/incubator-nuttx/pull/1610#discussion_r473924509
##########
File path: arch/xtensa/src/esp32/Kconfig
##########
@@ -362,11 +362,53 @@ endmenu # I2C configuration
menu "SPI configuration"
depends on ESP32_SPI
+config ESP32_SPI_SWCS
+ bool "SPI software CS"
+ default y
+ ---help---
+ Use SPI software CS.
+
+config ESP32_SPI_UDCS
+ bool "User defined CS"
+ default n
+ depends on ESP32_SPI_SWCS
+ ---help---
+ Use user defined CS.
+
+choice
+ prompt "DMA owner"
+ default ESP32_SPI2_DMA
+ depends on ESP32_SPI2 || ESP32_SPI3
+ ---help---
+ Select which SPI owns DMA, only one SPI DMA is available, so
+ only one SPI can use DMA.
Review comment:
Yes, you are right. I mean DMA channel here, not just DMA.
ESP32 has 4 SPI hardware controllers, SPI0 for code flash, SPI1 is a little
different from SPI2 and SPI3, because it has an arbiter connecting to IO, add
its I/O pins are same as SPI0, so I have not added SPI1 driver.
My original idea was keeping a channel for SPI1, and driver only uses one
channel. So it is what it is now.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]