diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-04-27 19:27:15 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-04-27 19:27:15 +0200 |
commit | ee498a9d7ca4954398f35716804b1b59c7556c5b (patch) | |
tree | 9944eaedac158ad7cf02c10a7bdc8cf2aa73d04e /apps/drivers | |
parent | 7ca82801bd4d4b9d6f4a0ac515e5cfcdc28f2e05 (diff) | |
download | px4-firmware-ee498a9d7ca4954398f35716804b1b59c7556c5b.tar.gz px4-firmware-ee498a9d7ca4954398f35716804b1b59c7556c5b.tar.bz2 px4-firmware-ee498a9d7ca4954398f35716804b1b59c7556c5b.zip |
Made HMC bus-agnostic
Diffstat (limited to 'apps/drivers')
-rw-r--r-- | apps/drivers/device/i2c.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/drivers/device/i2c.h b/apps/drivers/device/i2c.h index 66c34dd7c..7daba31be 100644 --- a/apps/drivers/device/i2c.h +++ b/apps/drivers/device/i2c.h @@ -61,6 +61,11 @@ protected: unsigned _retries; /** + * The I2C bus number the device is attached to. + */ + int _bus; + + /** * @ Constructor * * @param name Driver name @@ -123,7 +128,6 @@ protected: } private: - int _bus; uint16_t _address; uint32_t _frequency; struct i2c_dev_s *_dev; |