aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/lib
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-04-22 21:32:32 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-04-22 21:32:32 +0000
commit4061297c2a41081c374585a6f256a51f1b799058 (patch)
tree16c6c6dd6287fcce0194640d45174fd953bad600 /os/hal/lib
parent213d63733ba09da3927cfc18b67cf7a040bdd8ec (diff)
downloadChibiOS-4061297c2a41081c374585a6f256a51f1b799058.tar.gz
ChibiOS-4061297c2a41081c374585a6f256a51f1b799058.tar.bz2
ChibiOS-4061297c2a41081c374585a6f256a51f1b799058.zip
EX: added get temperature for L3GD20, improved related demos
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9341 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/lib')
-rw-r--r--os/hal/lib/peripherals/sensors/hal_gyroscope.h34
1 files changed, 1 insertions, 33 deletions
diff --git a/os/hal/lib/peripherals/sensors/hal_gyroscope.h b/os/hal/lib/peripherals/sensors/hal_gyroscope.h
index 9ffb1b9f5..1fb36e8d8 100644
--- a/os/hal/lib/peripherals/sensors/hal_gyroscope.h
+++ b/os/hal/lib/peripherals/sensors/hal_gyroscope.h
@@ -56,11 +56,7 @@
/* Invoke the set sensitivity procedure.*/ \
msg_t (*set_sensitivity)(void *instance, float sensitivities[]); \
/* Restore sensitivity stored data to default.*/ \
- msg_t (*reset_sensitivity)(void *instance); \
- /* Enable temperature drift effect compensation.*/ \
- msg_t (*enable_temperature_compensation)(void *instance); \
- /* Disable temperature drift effect compensation.*/ \
- msg_t (*disable_temperature_compensation)(void *instance);
+ msg_t (*reset_sensitivity)(void *instance);
/**
@@ -221,34 +217,6 @@ typedef struct {
*/
#define gyroscopeResetSensitivity(ip) \
(ip)->vmt_basegyroscope->reset_sensitivity(ip)
-
-/**
- * @brief Enables data compensation removing temperature drift.
- *
- * @param[in] ip pointer to a @p BaseGyroscope class.
- *
- * @return The operation status.
- * @retval MSG_OK if the function succeeded.
- * @retval MSG_RESET if one or more errors occurred.
- *
- * @api
- */
-#define gyroscopeEnableTempCompensation(ip) \
- (ip)->vmt_basegyroscope->enable_temperature_compensation(ip)
-
-/**
- * @brief Disable data compensation.
- *
- * @param[in] ip pointer to a @p BaseGyroscope class.
- *
- * @return The operation status.
- * @retval MSG_OK if the function succeeded.
- * @retval MSG_RESET if one or more errors occurred.
- *
- * @api
- */
-#define gyroscopeDisableTempCompensation(ip) \
- (ip)->vmt_basegyroscope->disable_temperature_compensation(ip)
/** @} */
/*===========================================================================*/