diff options
author | elthanhuang <elthan_huang@compal.corp-partner.google.com> | 2018-08-09 21:27:02 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-13 05:20:24 -0700 |
commit | 9ddaa42683da58042dd79000aed21d978ea21a19 (patch) | |
tree | 33d06a26db6f84ebde91b2676f1a9eef00af1c05 /board/fleex/board.h | |
parent | e76700b03d84acde223f4bcdf79db764e7ed1039 (diff) | |
download | chrome-ec-9ddaa42683da58042dd79000aed21d978ea21a19.tar.gz |
Fleex: Change define motion_sensors of LID_ACCEL
and initial x,y,z-axis direction of lid and base g-sensor
Enable CONFIG_ACCEL_LIS2DE and motion_sensors struct of
LID_ACCEL meet LIS2ED12 accelerometer.
Modify standard reference frame to fit Fleex shell design.
(base_standard_ref and lid_standard_ref)
BUG=b:112399626
BRANCH=none
TEST=Use "ectool motionsense" to check sensor0/1/2 value.
Use "watch -n 1 ectool motionsense" to check x,y,z-axis.
1. When x-axis face up, get x value of sensor0 and sensor1 more than 10000
2. When y-axis face up, get y value of sensor0 and sensor1 more than 10000
3. When z-axis face up, get z value of sensor0 and sensor1 more than 10000
Change-Id: I1f4409ef634ed4849aad7017cad598588b0637d9
Signed-off-by: elthanhuang <elthan_huang@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/1169040
Commit-Ready: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
Tested-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/fleex/board.h')
-rw-r--r-- | board/fleex/board.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/fleex/board.h b/board/fleex/board.h index 30fab484ac..40a620296e 100644 --- a/board/fleex/board.h +++ b/board/fleex/board.h @@ -23,7 +23,7 @@ #define CONFIG_LED_COMMON /* Sensors */ -#define CONFIG_ACCEL_KX022 /* Lid accel */ +#define CONFIG_ACCEL_LIS2DE /* Lid accel */ #define CONFIG_ACCELGYRO_LSM6DSM /* Base accel */ /* Sensors without hardware FIFO are in forced mode */ #define CONFIG_ACCEL_FORCE_MODE_MASK (1 << LID_ACCEL) |