mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'feature/spi_burst_desc' into 'master'
spi_master: change to DMA burst mode when access descriptors See merge request idf/esp-idf!2824
This commit is contained in:
commit
4eb28b9ace
@ -611,6 +611,8 @@ static void SPI_MASTER_ISR_ATTR spi_intr(void *arg)
|
||||
host->hw->dma_in_link.start=0;
|
||||
host->hw->dma_conf.val &= ~(SPI_OUT_RST|SPI_IN_RST|SPI_AHBM_RST|SPI_AHBM_FIFO_RST);
|
||||
host->hw->dma_conf.out_data_burst_en=1;
|
||||
host->hw->dma_conf.indscr_burst_en=1;
|
||||
host->hw->dma_conf.outdscr_burst_en=1;
|
||||
//Set up QIO/DIO if needed
|
||||
host->hw->ctrl.val &= ~(SPI_FREAD_DUAL|SPI_FREAD_QUAD|SPI_FREAD_DIO|SPI_FREAD_QIO);
|
||||
host->hw->user.val &= ~(SPI_FWRITE_DUAL|SPI_FWRITE_QUAD|SPI_FWRITE_DIO|SPI_FWRITE_QIO);
|
||||
|
Loading…
x
Reference in New Issue
Block a user