Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rtl/i2c_master: Add support for clock stretching
If the slave wants, it can hold SCL low to prevent the master from proceeding. This adds support for detecting this and waiting for SCL to rise. It also has optional timeout (with error report) support if you want to abort transactions where the slave seems unresponsive. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
- Loading branch information
Showing
3 changed files
with
81 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters