All,

Please take a look at the i2c HAL api in

https://github.com/apache/incubator-mynewt-core/pull/44

I chose a simple blocking API for now to get some I2C functionality fast.   Its 
mostly just read/write, with a few other functions.


  1.  probe - I found that immediately after writing this I need some way to 
discovery what was on the bus.  I wrote this simple function to look for a 
single address.
  2.  Start/stop - Many devices are just read/write registers so there is no 
need to control transactions on the bus.  However, for serial eeprom random 
access, its more efficient to write an address then read the data.  In this 
case you would issue start,write,read,stop.

Paul

Reply via email to