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


   ## Summary
   
   This migrates BMP280 code to sensor interface. It is based on fetch() 
callback since BMP280 does not offer interrupt which could be used for periodic 
sampling. If activated via IOCTL, it will go into "normal" mode and sample at a 
given period (configurable). Otherwise, it can still be read, which will use 
forced mode to get a single sample (for minimal power use).
   
   I made a minor change to sensor interface in the meantime, since 
set_interval passed a pointer to the value instead of the value (which doesn't 
really make sense). Since this is not used on any driver the change is safe.
   
   ## Impact
   
   BMP280 behavior change since it now responds to sensor interface. Sensor 
interface slightly changed as well.
   
   ## Testing
   
   Tested in both modes with BMP280
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to