AP_HAL_SITL: remove I2CDriver

I2CDevice now serves for the same purpose.
This commit is contained in:
Lucas De Marchi 2016-07-22 15:02:20 -03:00
parent 13848f0f3f
commit d418338e22

View File

@ -33,8 +33,6 @@ static AnalogIn sitlAnalogIn(&sitlState);
static GPIO sitlGPIO(&sitlState); static GPIO sitlGPIO(&sitlState);
// use the Empty HAL for hardware we don't emulate // use the Empty HAL for hardware we don't emulate
static Empty::Semaphore emptyI2Csemaphore;
static Empty::I2CDriver emptyI2C(&emptyI2Csemaphore);
static Empty::I2CDeviceManager i2c_mgr_instance; static Empty::I2CDeviceManager i2c_mgr_instance;
static Empty::SPIDeviceManager emptySPI; static Empty::SPIDeviceManager emptySPI;
static Empty::OpticalFlow emptyOpticalFlow; static Empty::OpticalFlow emptyOpticalFlow;
@ -57,9 +55,6 @@ HAL_SITL::HAL_SITL() :
&sitlUart4Driver, /* uartE */ &sitlUart4Driver, /* uartE */
&sitlUart5Driver, /* uartF */ &sitlUart5Driver, /* uartF */
&i2c_mgr_instance, &i2c_mgr_instance,
&emptyI2C, /* i2c */
&emptyI2C, /* i2c */
&emptyI2C, /* i2c */
&emptySPI, /* spi */ &emptySPI, /* spi */
&sitlAnalogIn, /* analogin */ &sitlAnalogIn, /* analogin */
&sitlEEPROMStorage, /* storage */ &sitlEEPROMStorage, /* storage */
@ -85,8 +80,6 @@ void HAL_SITL::run(int argc, char * const argv[], Callbacks* callbacks) const
rcout->init(); rcout->init();
//spi->init(); //spi->init();
//i2c->begin();
//i2c->setTimeout(100);
analogin->init(); analogin->init();
callbacks->setup(); callbacks->setup();