phfbertoleti opened a new pull request #2888:
URL: https://github.com/apache/incubator-nuttx/pull/2888


   ESP32 BMP180 support in Nuttx.
   
   ## Summary
   
   As ESP32 has 2 I2C interfaces and BMP180 is a I2C sensor, the criterias to 
use BMP180 in I2C0 or I2C1 are:
   
   1- First, bring-up routines search for BMP180 in I2C0.
      If BMP180 is found in I2C0, then /dev/press0 is created.
   2- If BMP180 cannot be registered in I2C0, bring-up routines search for it 
in I2C1.
      If BMP180 is found in I2C1, then /dev/press0 is created.
   
   It means only one BMP180 could be suported in Nuttx. In my tests I've 
observed
   that BMP180 example application doesn't seem to work with /dev/press1 BMP180 
device,
   therefore even BMP180 is found in I2C1, it'll be registered as /dev/press0 
device.
   
   ## Impact
   It doesn't impact on another modules.
   
   ## Testing
   
   After this change, BMP180 could be successfully found (/dev/press0) and read 
bu bmp180 example, as seen below:
   
   
![esp32_bmp180_nuttx_support](https://user-images.githubusercontent.com/16869652/108652000-65b34d80-7499-11eb-9998-2d2aca956a25.png)
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to