minix/drivers/i2c/arch/earm
Thomas Cort cb5e2921b3 i2c: increase read/write timeout
The sht21 temperature and humidity sensor holds the i2c bus while
an ADC conversion is in progress. For example, a temperature
measurement is requested, a read operation is started, and the
sht21 doesn't respond to the read request until the result of
the measurement is ready. The conversion time isn't constant.
On rare occations (one in hundreds of samples) the timeout in the
i2c driver expires returning an error.

The example code from Sensirion, the sht21's manufacturer, suggests
a bus timeout of 1 second to accommodate the sht21. This commit
increases the bus timeout to 1 second. The timeout is only reached
when chips do not respond normally, so the change doesn't affect the
performance of any other drivers.

Change-Id: I57b0f958a5d0b69b221af380b771fe67401ff604
2013-09-18 08:10:26 -04:00
..
Makefile.inc i2c: initial bus drivers for am335x and dm37xx 2013-07-15 11:11:13 -04:00
omap_i2c.c i2c: increase read/write timeout 2013-09-18 08:10:26 -04:00
omap_i2c.h i2c: initial bus drivers for am335x and dm37xx 2013-07-15 11:11:13 -04:00
omap_i2c_registers.h i2c: general clean-up 2013-08-13 16:29:22 -04:00