Re: I2C retries

2018-08-29 Thread Greg Stein
On Wed, Aug 29, 2018 at 8:59 PM Christopher Collins wrote: > Hello all, > > I noticed the HAL master I2C API does not include any retry logic. As > you probably know, in I2C, the default state of the SCL line is NACK. > Euh... ACK/NACK is on SDA while the master cycles SCL. > This means an

Re: I2C retries

2018-08-29 Thread Jacob Rosenthal
Just a note most of the sensors and drivers have clumsy repeat attempts and timeouts in their init usually on whoami query that could be cleaned up with something like this On Wed, Aug 29, 2018, 6:59 PM Christopher Collins wrote: > Hello all, > > I noticed the HAL master I2C API does not

I2C retries

2018-08-29 Thread Christopher Collins
Hello all, I noticed the HAL master I2C API does not include any retry logic. As you probably know, in I2C, the default state of the SCL line is NACK. This means an unresponsive peripheral is indistinguishable from one that is actively nacking the master's writes. If the master's writes are