From 4061297c2a41081c374585a6f256a51f1b799058 Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Fri, 22 Apr 2016 21:32:32 +0000 Subject: 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 --- os/hal/lib/peripherals/sensors/hal_gyroscope.h | 34 +------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) (limited to 'os/hal/lib/peripherals') 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) /** @} */ /*===========================================================================*/ -- cgit v1.2.3