[riot-notifications] [RIOT-OS/RIOT] cpu/stm32_common/i2c_2: reset i2c when timeout during start condition (#11082)

Vincent Dupont 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:

  https://github.com/RIOT-OS/RIOT/pull/11082

-- 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 --

https://github.com/RIOT-OS/RIOT/pull/11082.patch
https://github.com/RIOT-OS/RIOT/pull/11082.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11082
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190228/1892494a/attachment.html>


More information about the notifications mailing list