mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
spi: Ensure DMA In-Link EOF is generated by trans_done on SPI Slave
This commit is contained in:
committed by
bot
parent
2bc4a0836f
commit
880e96d7bb
@@ -136,6 +136,8 @@ static inline void spi_ll_slave_init(spi_dev_t *hw)
|
||||
hw->user.usr_miso_highpart = 0;
|
||||
hw->user.usr_mosi_highpart = 0;
|
||||
|
||||
// Configure DMA In-Link to not be terminated when transaction bit counter exceeds
|
||||
hw->dma_conf.rx_eof_en = 0;
|
||||
hw->dma_conf.dma_seg_trans_en = 0;
|
||||
|
||||
//Disable unneeded ints
|
||||
|
@@ -137,6 +137,9 @@ static inline void spi_ll_slave_init(spi_dev_t *hw)
|
||||
hw->user.usr_miso_highpart = 0;
|
||||
hw->user.usr_mosi_highpart = 0;
|
||||
|
||||
// Configure DMA In-Link to not be terminated when transaction bit counter exceeds
|
||||
hw->dma_conf.rx_eof_en = 0;
|
||||
|
||||
//Disable unneeded ints
|
||||
hw->slave.val &= ~SPI_LL_UNUSED_INT_MASK;
|
||||
}
|
||||
|
@@ -135,6 +135,8 @@ static inline void spi_ll_slave_init(spi_dev_t *hw)
|
||||
hw->user.usr_miso_highpart = 0;
|
||||
hw->user.usr_mosi_highpart = 0;
|
||||
|
||||
// Configure DMA In-Link to not be terminated when transaction bit counter exceeds
|
||||
hw->dma_conf.rx_eof_en = 0;
|
||||
hw->dma_conf.dma_seg_trans_en = 0;
|
||||
|
||||
//Disable unneeded ints
|
||||
|
Reference in New Issue
Block a user