AP_HAL: support LPS25H on MPU AUX

This commit is contained in:
Andrew Tridgell 2018-02-15 15:00:41 +11:00
parent 75a262ebf9
commit 2b0a3272fd
3 changed files with 7 additions and 6 deletions

View File

@ -112,6 +112,7 @@
#define HAL_BARO_20789_I2C_I2C 14
#define HAL_BARO_20789_I2C_SPI 15
#define HAL_BARO_LPS22H_SPI 16
#define HAL_BARO_LPS25H_IMU_I2C 17
/* Compass driver types */
#define HAL_COMPASS_NONE 0

View File

@ -78,6 +78,12 @@ public:
}
}
/*
* Change device address. Note that this is the 7 bit address, it
* does not include the bit for read/write. Only works on I2C
*/
virtual void set_address(uint8_t address) {};
/*
* Set the speed of future transfers. Depending on the bus the speed may
* be shared for all devices on the same bus.

View File

@ -30,12 +30,6 @@ public:
virtual ~I2CDevice() { }
/*
* Change device address. Note that this is the 7 bit address, it
* does not include the bit for read/write.
*/
virtual void set_address(uint8_t address) = 0;
/* Device implementation */
/* See Device::set_speed() */