gustavonihei opened a new pull request #3694:
URL: https://github.com/apache/incubator-nuttx/pull/3694


   ## Summary
   This PR intends to add support for DMA transfers on the ESP32-C3 SPI driver.
   This functionality has been validated with SPITool application on the 
ESP32-C3 DevKit by looping back MOSI and MISO pins on GPSPI2, both using IOMUX 
pins and routing through the GPIO Matrix.
   Also, for testing purposes, the ESP32C3_SPI_DMATHRESHOLD config has been set 
to 0 to make sure DMA is always used.
   
   ## Impact
   Only for the SPI driver of ESP32-C3 based boards. Otherwise, no impact if 
not selected.
   
   ## Testing
   `esp32c3-devkit:nsh` with SPI tool:
   
   ```shell
   ABInitializing /dev/spi2...
   esp32c3_spi_setfrequency: frequency=400000, actual=400000
   esp32c3_spi_setbits: nbits=8
   esp32c3_spi_setmode: mode=0
   
   NuttShell (NSH) NuttX-10.1.0-RC1
   nsh> spi exch -x 15 
DEADA55ABEEFA55ADEADA55ABEEFA55ADEADA55ABEEFA55ADEADA55ABEEF
   Sending:        ADDE 5AA5 EFBE 5AA5 ADDE 5AA5 EFBE 5AA5 ADDE 5AA5 EFBE 5AA5 
ADDE 5AA5 EFBE
   spidrvr_ioctl: cmd=8705 arg=1070086124
   esp32c3_spi_setfrequency: frequency=4000000, actual=4000000
   esp32c3_spi_setmode: mode=0
   esp32c3_spi_setbits: nbits=16
   esp32c3_spi_select: devid: 00160000 CS: select
   esp32c3_spi_select: devid: 00160000 CS: select
   esp32c3_spi_dma_exchange: nwords=15
   esp32c3_spi_select: devid: 00160000 CS: free
   esp32c3_spi_select: devid: 00160000 CS: free 
   Received:       ADDE 5AA5 EFBE 5AA5 ADDE 5AA5 EFBE 5AA5 ADDE 5AA5 EFBE 5AA5 
ADDE 5AA5 EFBE 
   nsh> 
   ```
   


-- 
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]


Reply via email to