aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/lib/peripherals/include/hal_gyroscope.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-03-06 15:41:40 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-03-06 15:41:40 +0000
commit2eef164c17fbddd23fff2b83cd49d03b9577fdcd (patch)
tree1839c182baf42d4b8cdfc309ed73eddd6b14c43b /os/hal/lib/peripherals/include/hal_gyroscope.h
parentcd2beca38c5a44b7a2cfbae68fa7e157e6986c39 (diff)
downloadChibiOS-2eef164c17fbddd23fff2b83cd49d03b9577fdcd.tar.gz
ChibiOS-2eef164c17fbddd23fff2b83cd49d03b9577fdcd.tar.bz2
ChibiOS-2eef164c17fbddd23fff2b83cd49d03b9577fdcd.zip
Modified to allow multiple inheritance.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9042 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/lib/peripherals/include/hal_gyroscope.h')
-rw-r--r--os/hal/lib/peripherals/include/hal_gyroscope.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/os/hal/lib/peripherals/include/hal_gyroscope.h b/os/hal/lib/peripherals/include/hal_gyroscope.h
index 142832094..4d551d777 100644
--- a/os/hal/lib/peripherals/include/hal_gyroscope.h
+++ b/os/hal/lib/peripherals/include/hal_gyroscope.h
@@ -46,14 +46,20 @@
/**
* @brief BaseGyroscope specific methods.
*/
-#define _base_gyroscope_methods \
- _base_sensor_methods \
+#define _base_gyroscope_methods_alone \
/* Remove the calibration data.*/ \
msg_t (*reset_calibration)(void *instance); \
/* Invokes the calibration procedure.*/ \
msg_t (*calibrate)(void *instance);
/**
+ * @brief BaseGyroscope specific methods with inherited ones.
+ */
+#define _base_gyroscope_methods \
+ _base_sensor_methods \
+ _base_gyroscope_methods_alone
+
+/**
* @brief @p BaseGyroscope virtual methods table.
*/
struct BaseGyroscopeVMT {