aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/lib/peripherals/include/hal_compass.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_compass.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_compass.h')
-rw-r--r--os/hal/lib/peripherals/include/hal_compass.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/os/hal/lib/peripherals/include/hal_compass.h b/os/hal/lib/peripherals/include/hal_compass.h
index 22bf22844..9d4678878 100644
--- a/os/hal/lib/peripherals/include/hal_compass.h
+++ b/os/hal/lib/peripherals/include/hal_compass.h
@@ -46,9 +46,15 @@
/**
* @brief BaseCompass specific methods.
*/
+#define _base_compass_methods_alone
+
+/**
+ * @brief BaseCompass specific methods with inherited ones.
+ */
#define _base_compass_methods \
- _base_sensor_methods
-
+ _base_sensor_methods \
+ _base_compass_methods_alone
+
/**
* @brief @p BaseCompass virtual methods table.
*/