diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-03-14 16:42:49 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-03-14 16:42:49 +0000 |
commit | f04e169af85bdb7f6a9177069f9f7a134c06b492 (patch) | |
tree | 6d21c29f6f1b247a2098c9d8ed3b3bc7f6a1f902 /os/hal/lib/peripherals/include/hal_accelerometer.h | |
parent | 17e084724fa5788b2c5939c573fbec11b3278a9e (diff) | |
download | ChibiOS-f04e169af85bdb7f6a9177069f9f7a134c06b492.tar.gz ChibiOS-f04e169af85bdb7f6a9177069f9f7a134c06b492.tar.bz2 ChibiOS-f04e169af85bdb7f6a9177069f9f7a134c06b492.zip |
Fixed vmt names and related macros
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9101 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/lib/peripherals/include/hal_accelerometer.h')
-rw-r--r-- | os/hal/lib/peripherals/include/hal_accelerometer.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/os/hal/lib/peripherals/include/hal_accelerometer.h b/os/hal/lib/peripherals/include/hal_accelerometer.h index 37927f37e..7cd296e2f 100644 --- a/os/hal/lib/peripherals/include/hal_accelerometer.h +++ b/os/hal/lib/peripherals/include/hal_accelerometer.h @@ -74,7 +74,7 @@ struct BaseAccelerometerVMT { */
typedef struct {
/** @brief Virtual Methods Table.*/
- const struct BaseAccelerometerVMT *vmtac;
+ const struct BaseAccelerometerVMT *vmt_baseaccelerometer;
_base_sensor_data
} BaseAccelerometer;
@@ -94,7 +94,8 @@ typedef struct { *
* @api
*/
-#define accelerometerGetAxesNumber(ip) ((ip)->vmtac->get_axes_number(ip))
+#define accelerometerGetAxesNumber(ip) \
+ (ip)->vmt_baseaccelerometer->get_axes_number(ip)
/**
* @brief Accelerometer read raw data.
@@ -108,7 +109,8 @@ typedef struct { *
* @api
*/
-#define accelerometerReadRaw(ip, dp) ((ip)->vmtac->read_raw(ip, dp))
+#define accelerometerReadRaw(ip, dp) \
+ (ip)->vmt_baseaccelerometer->read_raw(ip, dp)
/**
* @brief Accelerometer read cooked data.
@@ -122,7 +124,8 @@ typedef struct { *
* @api
*/
-#define accelerometerReadCooked(ip, dp) ((ip)->vmtac->read_cooked(ip, dp))
+#define accelerometerReadCooked(ip, dp) \
+ (ip)->vmt_baseaccelerometer->read_cooked(ip, dp)
/** @} */
/*===========================================================================*/
|