summaryrefslogtreecommitdiff
path: root/driver/accel_bma2x2.h
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2018-03-09 14:43:47 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-03-16 13:29:58 -0700
commitcf30d5c29dae458f1f616351b48f8d04aa4a777a (patch)
tree1fe94ec0472bb1b2856cc4707e4cae42b6d209ae /driver/accel_bma2x2.h
parent09292f6a89b113775ac951afed022138b6b20026 (diff)
downloadchrome-ec-cf30d5c29dae458f1f616351b48f8d04aa4a777a.tar.gz
driver: bma2x2: Add perform_calib
Add fast compensation automatic calibration, like bmi160. Use timestamp_expired for timeout measurement for both perform_calib functions. Remove driver offset field, remove private bma2x2 structure. BUG=b:73205042 BRANCH=master TEST=echo 1 > calibrate perform calibration. Reading in_accel_*_calibbias is within range. Check on Lami for both bma2x2 and bmi160. Change-Id: I3472865287fa4769a05e6f872b92d7c3f933cb4e Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/957872 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'driver/accel_bma2x2.h')
-rw-r--r--driver/accel_bma2x2.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/driver/accel_bma2x2.h b/driver/accel_bma2x2.h
index d26782e9d4..2fcbfadfdc 100644
--- a/driver/accel_bma2x2.h
+++ b/driver/accel_bma2x2.h
@@ -8,19 +8,6 @@
#ifndef __CROS_EC_ACCEL_BMA2x2_H
#define __CROS_EC_ACCEL_BMA2x2_H
-enum bma2x2_accel {
- BMA255,
- SUPPORTED_BOSCH_ACCELS,
-};
-
-struct bma2x2_accel_data {
- /* Current range of accelerometer. */
- int sensor_range;
- /* Current output data rate of accelerometer. */
- int sensor_datarate;
- int16_t offset[3];
-};
-
extern const struct accelgyro_drv bma2x2_accel_drv;
/* I2C ADDRESS DEFINITIONS */