From f2102bba05b22ebda45820598592b14630576dc1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 10 Jan 2018 15:27:22 +1100 Subject: [PATCH] HAL_VRBrain: fixed I2C get_device() interface just stubs for now --- libraries/AP_HAL_VRBRAIN/I2CDevice.cpp | 5 ++++- libraries/AP_HAL_VRBRAIN/I2CDevice.h | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_VRBRAIN/I2CDevice.cpp b/libraries/AP_HAL_VRBRAIN/I2CDevice.cpp index 36b4b15abb..d1e09f4f3a 100644 --- a/libraries/AP_HAL_VRBRAIN/I2CDevice.cpp +++ b/libraries/AP_HAL_VRBRAIN/I2CDevice.cpp @@ -68,7 +68,10 @@ bool I2CDevice::read_registers_multiple(uint8_t first_reg, uint8_t *recv, } AP_HAL::OwnPtr -I2CDeviceManager::get_device(uint8_t bus, uint8_t address) +I2CDeviceManager::get_device(uint8_t bus, uint8_t address, + uint32_t bus_clock, + bool use_smbus, + uint32_t timeout_ms) { auto dev = AP_HAL::OwnPtr(new I2CDevice(bus, address)); return dev; diff --git a/libraries/AP_HAL_VRBRAIN/I2CDevice.h b/libraries/AP_HAL_VRBRAIN/I2CDevice.h index c132c3e64e..8be434ba1d 100644 --- a/libraries/AP_HAL_VRBRAIN/I2CDevice.h +++ b/libraries/AP_HAL_VRBRAIN/I2CDevice.h @@ -87,7 +87,10 @@ public: return static_cast(i2c_mgr); } - AP_HAL::OwnPtr get_device(uint8_t bus, uint8_t address) override; + AP_HAL::OwnPtr get_device(uint8_t bus, uint8_t address, + uint32_t bus_clock=400000, + bool use_smbus = false, + uint32_t timeout_ms=4) override; }; }