Browse Source

SITL: instansiate EmptyI2CDriver with EmptySemaphore

mission-4.1.18
Pat Hickey 12 years ago
parent
commit
dd27984eac
  1. 3
      libraries/AP_HAL_AVR_SITL/HAL_AVR_SITL_Class.cpp

3
libraries/AP_HAL_AVR_SITL/HAL_AVR_SITL_Class.cpp

@ -34,7 +34,8 @@ static SITLAnalogIn sitlAnalogIn(&sitlState); @@ -34,7 +34,8 @@ static SITLAnalogIn sitlAnalogIn(&sitlState);
// use the Empty HAL for hardware we don't emulate
static Empty::EmptyGPIO emptyGPIO;
static Empty::EmptyI2CDriver emptyI2C;
static Empty::EmptySemaphore emptyI2Csemaphore;
static Empty::EmptyI2CDriver emptyI2C(&emptyI2Csemaphore);
static Empty::EmptySPIDeviceManager emptySPI;
static SITLUARTDriver sitlUart0Driver(0, &sitlState);

Loading…
Cancel
Save