Skip to content
Snippets Groups Projects
Commit 74fb5d69 authored by Damien George's avatar Damien George
Browse files

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.
parent c4e58eaa
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment