AP_HAL_Linux: BBBMINI uses /dev/i2c-2

This commit is contained in:
mirkix 2015-07-05 21:53:17 +02:00 committed by Andrew Tridgell
parent b211b86204
commit e6363ea95d

View File

@ -25,7 +25,11 @@ static LinuxUARTDriver uartCDriver(false);
static LinuxUARTDriver uartEDriver(false);
static LinuxSemaphore i2cSemaphore;
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BBBMINI
static LinuxI2CDriver i2cDriver(&i2cSemaphore, "/dev/i2c-2");
#else
static LinuxI2CDriver i2cDriver(&i2cSemaphore, "/dev/i2c-1");
#endif
static LinuxSPIDeviceManager spiDeviceManager;
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO
static NavioAnalogIn analogIn;