bmp180/bmpx0x: Remove old bmp180 driver

This commit removes the old bmp180 driver that was erroneously
re-added when the interface examples and headers were introduced.

It then switches the users of bmp180 to the existing bmpx8x driver,
which already supports the bmp180.

Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Jon Trulson
2016-05-04 16:12:07 -06:00
committed by Noel Eck
parent cf74a260a3
commit dd2bca97b9
10 changed files with 18 additions and 469 deletions

View File

@ -30,6 +30,7 @@
#include <string>
#include <mraa/i2c.hpp>
#include <math.h>
#include "upm/iPressureSensor.hpp"
#include "upm/iTemperatureSensor.hpp"
#define ADDR 0x77 // device address
@ -89,7 +90,7 @@ namespace upm {
* @snippet bmpx8x.cxx Interesting
*/
class BMPX8X : public ITemperatureSensor {
class BMPX8X : public IPressureSensor, public ITemperatureSensor {
public:
/**
* Instantiates a BMPX8X object
@ -149,7 +150,14 @@ class BMPX8X : public ITemperatureSensor {
int getTemperatureCelcius();
/**
* Returns name of module. This is the string in library name after libupm_
* Return latest calculated pressure value in Pascals
* See IPressureSensor
*/
int getPressurePa() { return getPressure(); };
/**
* Returns name of module. This is the string in library name
* after libupm_
* @return name of module
*/