From ee498a9d7ca4954398f35716804b1b59c7556c5b Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 27 Apr 2013 19:27:15 +0200 Subject: Made HMC bus-agnostic --- apps/drivers/device/i2c.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/drivers/device/i2c.h') 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 @@ -60,6 +60,11 @@ protected: */ unsigned _retries; + /** + * The I2C bus number the device is attached to. + */ + int _bus; + /** * @ Constructor * @@ -123,7 +128,6 @@ protected: } private: - int _bus; uint16_t _address; uint32_t _frequency; struct i2c_dev_s *_dev; -- cgit v1.2.3