mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-03 22:08:28 +00:00 
			
		
		
		
	feat(i2c_slave): refactor i2c slave api to version 2 inorder to solve some existing problem
This commit is contained in:
		@@ -451,6 +451,10 @@ config SOC_I2C_SUPPORT_SLAVE
 | 
			
		||||
    bool
 | 
			
		||||
    default y
 | 
			
		||||
 | 
			
		||||
config SOC_I2C_SLAVE_CAN_GET_STRETCH_CAUSE
 | 
			
		||||
    bool
 | 
			
		||||
    default y
 | 
			
		||||
 | 
			
		||||
config SOC_I2C_SUPPORT_HW_CLR_BUS
 | 
			
		||||
    bool
 | 
			
		||||
    default y
 | 
			
		||||
 
 | 
			
		||||
@@ -200,6 +200,7 @@
 | 
			
		||||
#define SOC_I2C_FIFO_LEN       (32) /*!< I2C hardware FIFO depth */
 | 
			
		||||
#define SOC_I2C_CMD_REG_NUM    (16) /*!< Number of I2C command registers */
 | 
			
		||||
#define SOC_I2C_SUPPORT_SLAVE       (1)
 | 
			
		||||
#define SOC_I2C_SLAVE_CAN_GET_STRETCH_CAUSE (1)
 | 
			
		||||
 | 
			
		||||
// FSM_RST only resets the FSM, not using it. So SOC_I2C_SUPPORT_HW_FSM_RST not defined.
 | 
			
		||||
//ESP32-S2 support hardware clear bus
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user