Skip to content

Commit

Permalink
AP_HAL: removed vector based I2C get_device
Browse files Browse the repository at this point in the history
this is unused and prevents building on QURT
  • Loading branch information
tridge committed Jul 11, 2024
1 parent dbba455 commit b34d0c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_HAL/Device.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include "AP_HAL_Namespace.h"
#include "utility/functor.h"

#include <utility>

/*
* This is an interface abstracting I2C and SPI devices
*/
Expand Down
15 changes: 0 additions & 15 deletions libraries/AP_HAL/I2CDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#pragma once

#include <inttypes.h>
#include <vector>

#include "AP_HAL_Namespace.h"
#include "Device.h"
Expand Down Expand Up @@ -76,20 +75,6 @@ class I2CDeviceManager {
uint32_t bus_clock=400000,
bool use_smbus = false,
uint32_t timeout_ms=4) = 0;
/*
* Get device by looking up the I2C bus on the buses from @devpaths.
*
* Each string in @devpaths are possible locations for the bus. How the
* strings are implemented are HAL-specific. On Linux this is the info
* returned by 'udevadm info -q path /dev/i2c-X'. The first I2C bus
* matching a prefix in @devpaths is used to create a I2CDevice object.
*/
virtual OwnPtr<I2CDevice> get_device(std::vector<const char *> devpaths,
uint8_t address) {
// Not implemented
return nullptr;
}

/*
get mask of bus numbers for all configured I2C buses
*/
Expand Down

0 comments on commit b34d0c9

Please sign in to comment.