[riot-notifications] [RIOT-OS/RIOT] cpu/stm32_common/i2c_2: reset i2c when timeout during start condition (#11082)
notifications at github.com
Thu Feb 28 15:36:02 CET 2019
### Contribution description
After a bus error, the periph was not able to communicate with any device anymore, always getting timeouts on the start condition.
This fix proposes to reset the periph when a timeout occurs on the start.
### Testing procedure
Our setup has multiple devices on the bus, from time to time, we have a bus error when accessing one of them, then it stayed stuck. I'm not sure how easy it is to reproduce on other setups...
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* cpu/stm32_common/i2c_2: reset i2c when timeout during start condition
-- File Changes --
M cpu/stm32_common/periph/i2c_2.c (86)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications