1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 10:22:48 +02:00

qi-delay-after-stop.patch

Bitbang I2C could do with delay after last stop before next back-back transaction

Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green 2008-11-28 10:16:39 +00:00 committed by Andy Green
parent 4414f130bd
commit 6e84650e2f
2 changed files with 7 additions and 1 deletions

View File

@ -53,7 +53,8 @@ enum i2c_bitbang_states {
IBS_STOP1,
IBS_STOP2,
IBS_STOP3
IBS_STOP3,
IBS_STOP4
};
/* context for bitbang GPIO pins and transaction */

View File

@ -193,6 +193,11 @@ int i2c_next_state(struct i2c_bitbang * bb)
break;
case IBS_STOP3:
(bb->set)(1, 1);
bb->state = IBS_STOP4;
break;
case IBS_STOP4:
(bb->set)(1, 1);
return 1; /* done */
}