summaryrefslogtreecommitdiffstatshomepage
path: root/py/emit.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-11-11 17:38:52 +1100
committerDamien George <damien.p.george@gmail.com>2016-11-11 17:38:52 +1100
commit74fb5d6932c835f92c6985799e30ea28b6449705 (patch)
tree0e723304367f3fb3b6fd34d1968b3f3356b5124c /py/emit.h
parentc4e58eaa9820f5e63d9d94cec5ffb403c1dffbe7 (diff)
downloadmicropython-74fb5d6932c835f92c6985799e30ea28b6449705.tar.gz
micropython-74fb5d6932c835f92c6985799e30ea28b6449705.zip
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/emit.h')
0 files changed, 0 insertions, 0 deletions