-
Notifications
You must be signed in to change notification settings - Fork 23
Add error handling to i2c bus implementaion #19
Comments
We should also switch to using |
@rasendubi Makes sense. |
@Dubland : check #19 (comment) |
Function usage is described in stm32 i2c source. Checks like these https://github.com/forGGe/theCore/blob/develop/platform/stm32/export/aux/i2c_bus.hpp#L586 must be re-implemented using Error can be reported using bus event: After that, Talk to @vadimol for more details of how i2c driver works if something unclear. |
A small correction: checks must be re-implemented using
|
For now i2c bus implementation does not support error handling. Actually device can hang in case of en error or glitch on a bus.
For polling we can use timeouts for operations.
For irq - there is a separate handler for errors.
The text was updated successfully, but these errors were encountered: