diff options
author | Kyle Repinski <repinski23@gmail.com> | 2015-12-08 03:42:06 -0600 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2016-01-17 22:41:00 +0100 |
commit | 279fa1241dec2d666d92eec566a6cabfc1ad9f86 (patch) | |
tree | e8160418ed6b283386074a816d969916f497ba21 /libsensors/mlsdk/mllite/ml.c | |
parent | 3f2cb86a83bd0bc394399b7cd52f3db5339dc2d9 (diff) | |
download | device_samsung_tuna-279fa1241dec2d666d92eec566a6cabfc1ad9f86.zip device_samsung_tuna-279fa1241dec2d666d92eec566a6cabfc1ad9f86.tar.gz device_samsung_tuna-279fa1241dec2d666d92eec566a6cabfc1ad9f86.tar.bz2 |
libsensors: mlsdk: Remove lots of unused cruft.
This alone was enough to cut 16KB off of the mllite.so size.
Diffstat (limited to 'libsensors/mlsdk/mllite/ml.c')
-rw-r--r-- | libsensors/mlsdk/mllite/ml.c | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/libsensors/mlsdk/mllite/ml.c b/libsensors/mlsdk/mllite/ml.c index d830be7..c0f9a37 100644 --- a/libsensors/mlsdk/mllite/ml.c +++ b/libsensors/mlsdk/mllite/ml.c @@ -705,34 +705,6 @@ inv_error_t inv_set_fifo_interrupt(unsigned char on) } /** - * @brief Get the current set of DMP interrupt sources. - * These interrupts are generated by the DMP and can be - * routed to the MPU interrupt line via internal - * settings. - * - * @pre inv_dmp_open() - * @ifnot MPL_MF - * or inv_open_low_power_pedometer() - * or inv_eis_open_dmp() - * @endif - * must have been called. - * - * @return Currently enabled interrupt sources. The possible interrupts are: - * - INV_INT_FIFO, - * - INV_INT_MOTION, - * - INV_INT_TAP - */ -int inv_get_interrupts(void) -{ - INVENSENSE_FUNC_START; - - if (inv_get_state() < INV_STATE_DMP_OPENED) - return 0; // error - - return inv_obj.interrupt_sources; -} - -/** * @brief Sets up the Accelerometer calibration and scale factor. * * Please refer to the provided "9-Axis Sensor Fusion Application @@ -1044,14 +1016,6 @@ inv_error_t inv_set_compass_calibration(float range, signed char *orientation) float cal[9]; float scale = range / 32768.f; int kk; - unsigned short compassId = 0; - - compassId = inv_get_compass_id(); - - if ((compassId == COMPASS_ID_YAS529) || (compassId == COMPASS_ID_HMC5883) - || (compassId == COMPASS_ID_LSM303M)) { - scale /= 32.0f; - } for (kk = 0; kk < 9; ++kk) { cal[kk] = scale * orientation[kk]; @@ -1262,28 +1226,6 @@ inv_error_t inv_set_bias_update(unsigned short function) } /** - * @brief inv_get_motion_state is used to determine if the device is in - * a 'motion' or 'no motion' state. - * inv_get_motion_state returns INV_MOTION of the device is moving, - * or INV_NO_MOTION if the device is not moving. - * - * @pre inv_dmp_open() - * @ifnot MPL_MF - * or inv_open_low_power_pedometer() - * or inv_eis_open_dmp() - * @endif - * and inv_dmp_start() - * must have been called. - * - * @return INV_SUCCESS if successful or Non-zero error code otherwise. - */ -int inv_get_motion_state(void) -{ - INVENSENSE_FUNC_START; - return inv_obj.motion_state; -} - -/** * @brief inv_set_no_motion_thresh is used to set the threshold for * detecting INV_NO_MOTION * @@ -1395,25 +1337,6 @@ inv_error_t inv_set_no_motion_time(float time) } /** - * @brief inv_get_version is used to get the ML version. - * - * @pre inv_get_version can be called at any time. - * - * @param version inv_get_version writes the ML version - * string pointer to version. - * - * @return INV_SUCCESS if successful or Non-zero error code otherwise. - */ -inv_error_t inv_get_version(unsigned char **version) -{ - INVENSENSE_FUNC_START; - - *version = (unsigned char *)mlVer; //fixme we are wiping const - - return INV_SUCCESS; -} - -/** * @brief Check for the presence of the gyro sensor. * * This is not a physical check but a logical check and the value can change |