Browse Source

AP_HAL: add PROBE_IMU_I2C2 to linux.h

zr-v5.1
mhefny 4 years ago committed by Lucas De Marchi
parent
commit
1200d0e2f8
  1. 1
      libraries/AP_HAL/board/linux.h

1
libraries/AP_HAL/board/linux.h

@ -10,6 +10,7 @@ @@ -10,6 +10,7 @@
// make sensor selection clearer
#define PROBE_IMU_I2C(driver, bus, addr, args ...) ADD_BACKEND(AP_InertialSensor_ ## driver::probe(*this,GET_I2C_DEVICE(bus, addr),##args))
#define PROBE_IMU_I2C2(driver, bus, addr1, addr2, args ...) ADD_BACKEND(AP_InertialSensor_ ## driver::probe(*this,hal.i2c_mgr->get_device(bus, addr1),hal.i2c_mgr->get_device(bus, addr2),##args))
#define PROBE_IMU_SPI(driver, devname, args ...) ADD_BACKEND(AP_InertialSensor_ ## driver::probe(*this,hal.spi->get_device(devname),##args))
#define PROBE_IMU_SPI2(driver, devname1, devname2, args ...) ADD_BACKEND(AP_InertialSensor_ ## driver::probe(*this,hal.spi->get_device(devname1),hal.spi->get_device(devname2),##args))

Loading…
Cancel
Save