feat(i2c): Add new API and implementation for I2C driver
This commit is contained in:
@@ -315,6 +315,10 @@ config SOC_I2C_SUPPORT_APB
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_I2C_STOP_INDEPENDENT
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_I2S_NUM
|
||||
int
|
||||
default 2
|
||||
|
||||
@@ -184,6 +184,9 @@
|
||||
|
||||
#define SOC_I2C_SUPPORT_APB (1)
|
||||
|
||||
// On ESP32, the stop bit should be independent, we can't put trans data and stop command together
|
||||
#define SOC_I2C_STOP_INDEPENDENT (1)
|
||||
|
||||
/*-------------------------- I2S CAPS ----------------------------------------*/
|
||||
// ESP32 has 2 I2S
|
||||
#define SOC_I2S_NUM (2U)
|
||||
|
||||
Reference in New Issue
Block a user