Olliver Schinagl 408b4f30ab drivers: pn532_i2c: Respect proper timing specifications
The pn532 user manual states that after a i2c stop condition and before a i2c
start condition there should be a delay of minimally 1.3 milliseconds.
This is probably a limitation of the i2c peripheral or the firmware. In
any case, each i2c_read and i2c_write creates the packets which are
complemented with start/stop markers. It is thus required to take care
of timing in these two functions.

We solve this by wrapping the lower i2c_read and i2c_write functions for
the pn532, as this requirement is not for all chips.

Currently, we keep time using local variable, and thus the code is not
thread-safe. With libnfc being single threaded and only one instances of
libnfc can open a bus anyway, this is not yet a problem.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>

Conflicts:
	libnfc/drivers/pn532_i2c.c
2016-10-31 15:55:36 +01:00
..
2013-01-31 21:58:29 +01:00
2013-12-08 19:51:01 +01:00
2013-08-19 14:55:27 +02:00
2014-02-24 15:50:49 +01:00
2013-09-22 03:13:09 +02:00