(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. [ Full content available at: https://github.com/apache/mynewt-core/pull/1375 ] This message was relayed via gitbox.apache.org for [email protected]
