mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 20:11:36 +08:00
made init() a public function in posix I2C
This commit is contained in:
@@ -60,6 +60,8 @@ class __EXPORT I2C : public CDev
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
virtual int init();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* The number of times a read or write operation will be retried on
|
* The number of times a read or write operation will be retried on
|
||||||
@@ -79,8 +81,6 @@ protected:
|
|||||||
I2C(const char *name, const char *devname, int bus, uint16_t address, uint32_t frequency = 0);
|
I2C(const char *name, const char *devname, int bus, uint16_t address, uint32_t frequency = 0);
|
||||||
virtual ~I2C();
|
virtual ~I2C();
|
||||||
|
|
||||||
virtual int init();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check for the presence of the device on the bus.
|
* Check for the presence of the device on the bus.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user