mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_SITL: use empty I2CDevice
This commit is contained in:
parent
f22f4928dc
commit
c3d8ba3ea5
|
@ -34,6 +34,7 @@ static AnalogIn sitlAnalogIn(&sitlState);
|
|||
static Empty::GPIO emptyGPIO;
|
||||
static Empty::Semaphore emptyI2Csemaphore;
|
||||
static Empty::I2CDriver emptyI2C(&emptyI2Csemaphore);
|
||||
static Empty::I2CDeviceManager i2c_mgr_instance;
|
||||
static Empty::SPIDeviceManager emptySPI;
|
||||
static Empty::OpticalFlow emptyOpticalFlow;
|
||||
|
||||
|
@ -52,6 +53,7 @@ HAL_SITL::HAL_SITL() :
|
|||
&sitlUart2Driver, /* uartC */
|
||||
&sitlUart3Driver, /* uartD */
|
||||
&sitlUart4Driver, /* uartE */
|
||||
&i2c_mgr_instance,
|
||||
&emptyI2C, /* i2c */
|
||||
&emptyI2C, /* i2c */
|
||||
&emptyI2C, /* i2c */
|
||||
|
|
Loading…
Reference in New Issue