HAL_VRBrain: fixed I2C get_device() interface

just stubs for now
This commit is contained in:
Andrew Tridgell 2018-01-10 15:27:22 +11:00
parent ded22a6766
commit f2102bba05
2 changed files with 8 additions and 2 deletions

View File

@ -68,7 +68,10 @@ bool I2CDevice::read_registers_multiple(uint8_t first_reg, uint8_t *recv,
}
AP_HAL::OwnPtr<AP_HAL::I2CDevice>
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<AP_HAL::I2CDevice>(new I2CDevice(bus, address));
return dev;

View File

@ -87,7 +87,10 @@ public:
return static_cast<I2CDeviceManager*>(i2c_mgr);
}
AP_HAL::OwnPtr<AP_HAL::I2CDevice> get_device(uint8_t bus, uint8_t address) override;
AP_HAL::OwnPtr<AP_HAL::I2CDevice> get_device(uint8_t bus, uint8_t address,
uint32_t bus_clock=400000,
bool use_smbus = false,
uint32_t timeout_ms=4) override;
};
}