Ouss4 commented on a change in pull request #1610:
URL: https://github.com/apache/incubator-nuttx/pull/1610#discussion_r473742541
##########
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:
By this you mean DMA controller or DMA channels?
From the manual:
>two DMA channels are shared by SPI1, SPI2 and SPI3 controllers. Each DMA
channel can be used by
any one SPI controller at any given time.
It looks like the code expects to have only one channel (channel 2)
available. Am I looking at an old document?
----------------------------------------------------------------
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]