donghengqaz commented on code in PR #8047:
URL: https://github.com/apache/nuttx/pull/8047#discussion_r1065274229
##########
arch/xtensa/src/esp32/Kconfig:
##########
@@ -1158,6 +1158,37 @@ config ESP32_SPI2_MISOPIN
default 12
range 0 39
+choice ESP32_SPI2_MASTER_IO
+ prompt "SPI2 master I/O mode"
+ default ESP32_SPI2_MASTER_IO_RW
Review Comment:
It should have been designed as you said, but because ESP32 has not enough
GPIOs and peripherals, so some hardware needs to switch connection from SPI
master to slave, like:
1. ESP32 SPI0 & 1 connect to SPI flash and PSRAM
2. ESP32 SPI2 connects to some sensors
3. ESP32 SPI3 works as master mode and configure the camera
4. ESP32 SPI3 switches to slave mode, then receive data from camera
So in the case, we have to make the master and slave mode co-exist in
specific GPIOs and peripheral.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]