diff options
author | Ben Chen <ben.chen2@quanta.corp-partner.google.com> | 2020-08-13 20:18:38 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-18 05:08:11 +0000 |
commit | 1b9a55b24634c699eb3cec3467e665e77a7205dd (patch) | |
tree | 2cc21f0b10393693d945f7b885bcce260f03b000 /board/voxel/board.h | |
parent | dfdbd37b6bbc296dcceda9cee121e30709833d85 (diff) | |
download | chrome-ec-1b9a55b24634c699eb3cec3467e665e77a7205dd.tar.gz |
voxel: modify motion sensors config
change motion sensor base accel and gyro config,
and rotations matrices of lid accel and base.
BUG=b:162940877
BRANCH=none
TEST=Using ectool 'motionsense' verified lid angle now goes
from 0 to 360 and swtiches to tablet mode after crossing 200
threshold.
Change-Id: I2073ed7d64604d4c3a53ee5d9d11ab930840d0dd
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2352965
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/voxel/board.h')
-rw-r--r-- | board/voxel/board.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/board/voxel/board.h b/board/voxel/board.h index e380ba2846..422e4adcdd 100644 --- a/board/voxel/board.h +++ b/board/voxel/board.h @@ -33,21 +33,17 @@ /* Keyboard features */ /* Sensors */ -/* BMA253 accelerometer in base */ -#define CONFIG_ACCEL_BMA255 - -/* BMI260 accel/gyro in base */ -#define CONFIG_ACCELGYRO_BMI260 -#define CONFIG_ACCELGYRO_BMI260_INT_EVENT \ +/* BMI160 Base accel/gyro */ +#define CONFIG_ACCELGYRO_BMI160 +#define CONFIG_ACCELGYRO_BMI160_INT_EVENT \ TASK_EVENT_MOTION_SENSOR_INTERRUPT(BASE_ACCEL) -/* Sensors without hardware FIFO are in forced mode */ -#define CONFIG_ACCEL_FORCE_MODE_MASK BIT(LID_ACCEL) - +/* BMA253 Lid accel */ +#define CONFIG_ACCEL_BMA255 #define CONFIG_LID_ANGLE #define CONFIG_LID_ANGLE_UPDATE -#define CONFIG_LID_ANGLE_SENSOR_BASE BASE_ACCEL -#define CONFIG_LID_ANGLE_SENSOR_LID LID_ACCEL +#define CONFIG_LID_ANGLE_SENSOR_BASE BASE_ACCEL +#define CONFIG_LID_ANGLE_SENSOR_LID LID_ACCEL /* USB Type C and USB PD defines */ /* |