(dev list discussion: https://lists.apache.org/thread.html/bd2b854cbf7d6e0811fff33177c85fa1435dff7f1fb3c8baab6061e0@%3Cdev.mynewt.apache.org%3E)
This PR contains the following changes: 1. Define a common set of error code for the I2C HAL. 2. Add a single member to the `hal_i2c_master_data` struct: `retries`. 3. Modify the nRFxxx HAL I2C implementation so that it retries up to `retries` times when an unexpected NACK is received. 4. Update the drivers in `apache-mynewt-core` to use I2C retries. *Note:* The only HAL implementation modified by this PR is nRFxxx. This PR does not break the other implementations, but they won't perform any retries until they are updated separately. [ Full content available at: https://github.com/apache/mynewt-core/pull/1373 ] This message was relayed via gitbox.apache.org for [email protected]
