You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/08/31 20:26:59 UTC
[GitHub] ccollins476ad opened a new pull request #1375: [DO NOT MERGE] I2C
retries - Driver
ccollins476ad opened a new pull request #1375: [DO NOT MERGE] I2C retries - Driver
URL: https://github.com/apache/mynewt-core/pull/1375
(dev list discussion: https://lists.apache.org/thread.html/bd2b854cbf7d6e0811fff33177c85fa1435dff7f1fb3c8baab6061e0@%3Cdev.mynewt.apache.org%3E)
This PR implements I2C retries at the "driver level". This is an alternative to the "HAL level" implementation here: https://github.com/apache/mynewt-core/pull/1373
This PR contains the following changes:
1. Define a common set of error code for the I2C HAL.
2. Modify the nRFxxx HAL I2C implementation so that it uses the new set of error codes.
3. Define a new library: `hw/drivers/i2c/i2cn` (I2C-n, as in "n retries").
4. Update the drivers in `apache-mynewt-core` to use i2cn with retries.
*Note:* The only HAL implementation modified by this PR is nRFxxx. This PR does not break the other implementations, but they are continue to return inconsistent error codes.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services