diff options
| author | Damien George <damien.p.george@gmail.com> | 2016-11-11 17:38:52 +1100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2016-11-11 17:38:52 +1100 |
| commit | 74fb5d6932c835f92c6985799e30ea28b6449705 (patch) | |
| tree | 0e723304367f3fb3b6fd34d1968b3f3356b5124c /py/stream.c | |
| parent | c4e58eaa9820f5e63d9d94cec5ffb403c1dffbe7 (diff) | |
stmhal/i2c: Reset the I2C peripheral if there was an error on the bus.
If an I2C send/recv fails then the peripheral is now checked to see if
it's in a "stuck" state waiting for the stop bit, and if so then it is
reset so that the next I2C transaction can proceed.
This patch also de-inits the I2C peripheral in the init() method, before
init'ing it again.
Diffstat (limited to 'py/stream.c')
0 files changed, 0 insertions, 0 deletions
