lis3mdl i2c address is not board specific

This commit is contained in:
Daniel Agar 2018-02-08 10:34:32 -05:00 committed by Lorenz Meier
parent ad6df56438
commit cf54023c96
9 changed files with 2 additions and 10 deletions

View File

@ -121,7 +121,6 @@
*/
#define PX4_I2C_OBDEV_LED 0x55
#define PX4_I2C_OBDEV_HMC5883 0x1e
#define PX4_I2C_OBDEV_LIS3MDL 0x1e
/*
* ADC channels

View File

@ -267,7 +267,6 @@ __BEGIN_DECLS
#define PX4_I2C_OBDEV_LED 0x55
#define PX4_I2C_OBDEV_HMC5883 0x1e
#define PX4_I2C_OBDEV_LIS3MDL 0x1e
/*
* ADC channels

View File

@ -219,7 +219,6 @@ __BEGIN_DECLS
*/
#define PX4_I2C_OBDEV_LED 0x55
#define PX4_I2C_OBDEV_HMC5883 0x1e
#define PX4_I2C_OBDEV_LIS3MDL 0x1e
/* Define the follwoing to output the clock on J500-1 */
//#define GPIO_PCK1 (GPIO_PERIPHB | GPIO_CFG_DEFAULT | GPIO_PORT_PIOA | GPIO_PIN17)

View File

@ -228,7 +228,6 @@
*/
#define PX4_I2C_OBDEV_LED 0x55
#define PX4_I2C_OBDEV_HMC5883 0x1e
#define PX4_I2C_OBDEV_LIS3MDL 0x1e
/*----------------------------------------------------------*/
/* FMUv3 Cube SPI chip selects and DRDY */

View File

@ -164,7 +164,6 @@
*/
#define PX4_I2C_OBDEV_LED 0x55
#define PX4_I2C_OBDEV_HMC5883 0x1e
#define PX4_I2C_OBDEV_LIS3MDL 0x1e
#define PX4_I2C_OBDEV_BMP280 0x76
/*

View File

@ -182,7 +182,6 @@
*/
#define PX4_I2C_OBDEV_LED 0x55
#define PX4_I2C_OBDEV_HMC5883 0x1e
#define PX4_I2C_OBDEV_LIS3MDL 0x1e
/*
* ADC channels

View File

@ -243,7 +243,6 @@
#define PX4_I2C_OBDEV_LED 0x55
#define PX4_I2C_OBDEV_HMC5883 0x1e
#define PX4_I2C_OBDEV_LIS3MDL 0x1e
/*
* ADC channels

View File

@ -167,7 +167,6 @@ __BEGIN_DECLS
*/
#define PX4_I2C_OBDEV_LED 0x55
#define PX4_I2C_OBDEV_HMC5883 0x1e
#define PX4_I2C_OBDEV_LIS3MDL 0x1e
/*
* ADC channels

View File

@ -58,9 +58,9 @@
#include "lis3mdl.h"
#include "board_config.h"
#ifdef PX4_I2C_OBDEV_LIS3MDL
#if defined(PX4_I2C_BUS_ONBOARD) || defined(PX4_I2C_BUS_EXPANSION)
#define LIS3MDLL_ADDRESS PX4_I2C_OBDEV_LIS3MDL
#define LIS3MDLL_ADDRESS 0x1e
device::Device *LIS3MDL_I2C_interface(int bus);