|
@@ -54,7 +54,7 @@ static rt_err_t SCL_H(struct rt_i2c_bit_ops *ops)
|
|
{
|
|
{
|
|
if ((rt_tick_get() - start) > ops->timeout)
|
|
if ((rt_tick_get() - start) > ops->timeout)
|
|
return -RT_ETIMEOUT;
|
|
return -RT_ETIMEOUT;
|
|
- rt_thread_delay((ops->timeout + 1) >> 1);
|
|
|
|
|
|
+ i2c_delay(ops);
|
|
}
|
|
}
|
|
#ifdef RT_I2C_BITOPS_DEBUG
|
|
#ifdef RT_I2C_BITOPS_DEBUG
|
|
if (rt_tick_get() != start)
|
|
if (rt_tick_get() != start)
|