mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
feat(i2c_master): Add lp_i2c support in i2c master driver
This commit is contained in:
@@ -72,7 +72,7 @@ static const regdma_entries_config_t i2c1_regs_retention[] = {
|
||||
.owner = ENTRY(0) | ENTRY(2) }, \
|
||||
};
|
||||
|
||||
const i2c_reg_ctx_link_t i2c_regs_retention[SOC_I2C_NUM] = {
|
||||
const i2c_reg_ctx_link_t i2c_regs_retention[SOC_HP_I2C_NUM] = {
|
||||
{i2c0_regs_retention, ARRAY_SIZE(i2c0_regs_retention)},
|
||||
{i2c1_regs_retention, ARRAY_SIZE(i2c1_regs_retention)},
|
||||
};
|
||||
|
||||
@@ -555,6 +555,10 @@ config SOC_I2C_NUM
|
||||
int
|
||||
default 2
|
||||
|
||||
config SOC_HP_I2C_NUM
|
||||
int
|
||||
default 2
|
||||
|
||||
config SOC_I2C_FIFO_LEN
|
||||
int
|
||||
default 32
|
||||
|
||||
@@ -236,6 +236,7 @@
|
||||
/*-------------------------- I2C CAPS ----------------------------------------*/
|
||||
// ESP32-H2 has 2 I2C
|
||||
#define SOC_I2C_NUM (2U)
|
||||
#define SOC_HP_I2C_NUM (2U)
|
||||
|
||||
#define SOC_I2C_FIFO_LEN (32) /*!< I2C hardware FIFO depth */
|
||||
#define SOC_I2C_CMD_REG_NUM (8) /*!< Number of I2C command registers */
|
||||
|
||||
Reference in New Issue
Block a user