mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
spi: Ensure DMA In-Link EOF is generated by trans_done on SPI Slave
This commit is contained in:
parent
fb8d9f76b3
commit
4bc9e18124
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user