mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-03 22:08:28 +00:00 
			
		
		
		
	spi: Remove Slave TX/RX set bitlen not effective for ESP32-S2/C3/S3
Furthermore, RX_EOF_EN should only be set when SPI Slave is configured for segment transfer mode and the "ms_data_bitlen" field is configured to control the "IN_SUC_EOF" interrupt. Since "ms_data_bitlen" is not set anymore for S2, C3 and S3, "RX_EOF_EN" should be cleared.
This commit is contained in:
		
				
					committed by
					
						
						bot
					
				
			
			
				
	
			
			
			
						parent
						
							6fb126657a
						
					
				
				
					commit
					2bc4a0836f
				
			@@ -545,7 +545,6 @@ static inline void spi_ll_master_set_io_mode(spi_dev_t *hw, spi_ll_io_mode_t io_
 | 
			
		||||
static inline void spi_ll_slave_set_seg_mode(spi_dev_t *hw, bool seg_trans)
 | 
			
		||||
{
 | 
			
		||||
    hw->dma_conf.dma_seg_trans_en = seg_trans;
 | 
			
		||||
    hw->dma_conf.rx_eof_en = seg_trans;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
@@ -807,7 +806,7 @@ static inline void spi_ll_set_mosi_bitlen(spi_dev_t *hw, size_t bitlen)
 | 
			
		||||
 */
 | 
			
		||||
static inline void spi_ll_slave_set_rx_bitlen(spi_dev_t *hw, size_t bitlen)
 | 
			
		||||
{
 | 
			
		||||
    spi_ll_set_miso_bitlen(hw, bitlen);
 | 
			
		||||
    //This is not used in esp32s2
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
@@ -818,7 +817,7 @@ static inline void spi_ll_slave_set_rx_bitlen(spi_dev_t *hw, size_t bitlen)
 | 
			
		||||
 */
 | 
			
		||||
static inline void spi_ll_slave_set_tx_bitlen(spi_dev_t *hw, size_t bitlen)
 | 
			
		||||
{
 | 
			
		||||
    spi_ll_set_miso_bitlen(hw, bitlen);
 | 
			
		||||
    //This is not used in esp32s2
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user