1.软件i2c速率修复。

This commit is contained in:
MacRsh
2024-01-04 16:49:59 +08:00
parent e1309dfd62
commit 7f3adc3e44

View File

@@ -90,7 +90,7 @@ static int mr_soft_i2c_bus_configure(struct mr_i2c_bus *i2c_bus, struct mr_i2c_c
}
/* Calculate the delay time */
soft_i2c_bus->delay = 1000000 / config->baud_rate;
soft_i2c_bus->delay = (1000000 / config->baud_rate) / 2;
/* Configure SCL and SDA */
if (soft_i2c_bus->desc < 0)