refactor bmp280: use driver base class

This commit is contained in:
Beat Küng
2020-02-26 16:49:43 +01:00
committed by Daniel Agar
parent dbb53044ce
commit aeadf54a74
16 changed files with 95 additions and 223 deletions
@@ -54,8 +54,6 @@
#define PX4_NUMBER_I2C_BUSES 3
#define PX4_I2C_OBDEV_BMP280 0x76
// SPI
#define PX4_SPI_BUS_SENSORS 1
#define PX4_SPIDEV_MPU PX4_MK_SPI_SEL(0, DRV_IMU_DEVTYPE_MPU9250) // spi-1 - mpu9250
@@ -54,8 +54,6 @@
#define PX4_NUMBER_I2C_BUSES 3
#define PX4_I2C_OBDEV_BMP280 0x76
// SPI
#define PX4_SPI_BUS_SENSORS 1
#define PX4_SPIDEV_MPU PX4_MK_SPI_SEL(0, DRV_IMU_DEVTYPE_MPU9250)
@@ -56,7 +56,6 @@
#define PX4_NUMBER_I2C_BUSES 2
#define PX4_I2C_OBDEV_MPU9250 0x68
#define PX4_I2C_OBDEV_BMP280 0x76
// ADC channels:
@@ -11,8 +11,8 @@ then
mpu6000 -R 12 -s -T 20689 start
fi
# Internal Baro
bmp280 start
# Onboard Baro
bmp280 -X start
# Possible external compasses
ist8310 -X start
@@ -105,8 +105,6 @@
#define BOARD_NUMBER_I2C_BUSES 1
#define BOARD_I2C_BUS_CLOCK_INIT {100000}
#define PX4_I2C_OBDEV_BMP280 0x76
/*
* ADC channels
*
-2
View File
@@ -268,8 +268,6 @@ __END_DECLS
#define PX4_I2C_BUS_LED PX4_I2C_BUS_EXPANSION
#define PX4_I2C_OBDEV_BMP280 0x76
/*
* ADC channels
*
-6
View File
@@ -170,12 +170,6 @@
#define PX4_I2C_BUS_EXPANSION 1
#define PX4_I2C_BUS_LED PX4_I2C_BUS_EXPANSION
/**
* Devices on the external bus.
* Note that these are unshifted addresses.
*/
#define PX4_I2C_OBDEV_BMP280 0x76
/**
* ADC channels:
* These are the channel numbers of the ADCs of the microcontroller that can be used by the Px4 Firmware in the adc driver.