if (i2c->hw->first_xtranf)
{
HWREG(i2c->hw->base + TWI_CR_OFF) = TWI_CR_START;
i2c->hw->first_xtranf = false;
}
if (i2c->hw->first_xtranf)
{
HWREG(i2c->hw->base + TWI_CR_OFF) = TWI_CR_START;
i2c->hw->first_xtranf = false;
}
if (!waitRxRdy(i2c, CONFIG_I2C_START_TIMEOUT))
{
LOG_ERR("i2c: read start timeout\n");
if (!waitRxRdy(i2c, CONFIG_I2C_START_TIMEOUT))
{
LOG_ERR("i2c: read start timeout\n");