mirror of
https://github.com/apache/nuttx.git
synced 2026-09-26 09:54:24 +08:00
fix(esp32s3_i2c): set regs order
It looks like we need to set this bit before the UPGATE, like we do on the esp32c3 port.
This commit is contained in:
committed by
Petro Karashchenko
parent
d72de58aa8
commit
141dc1e3e7
@@ -1125,9 +1125,9 @@ static void i2c_clear_bus(struct esp32s3_i2c_priv_s *priv)
|
||||
I2C_SCL_RST_SLV_EN | I2C_SCL_RST_SLV_NUM_M,
|
||||
VALUE_TO_FIELD(I2C_SCL_CYC_NUM_DEF, I2C_SCL_RST_SLV_NUM));
|
||||
|
||||
modifyreg32(I2C_CTR_REG(priv->id), 0, I2C_CONF_UPGATE);
|
||||
|
||||
modifyreg32(I2C_SCL_SP_CONF_REG(priv->id), 0, I2C_SCL_RST_SLV_EN);
|
||||
|
||||
modifyreg32(I2C_CTR_REG(priv->id), 0, I2C_CONF_UPGATE);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user