diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2018-09-04 10:10:04 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-03-20 19:51:25 -0700 |
commit | 4b9a3c0cc9cee9ed85ba18dd2f9c23e90ca051fc (patch) | |
tree | 3f8db048371f529ac0ffff71553c8c8bd378cfe0 /board/scarlet | |
parent | 8fb1c6c52510438f77378f08d2b6d881da48dd3f (diff) | |
download | chrome-ec-4b9a3c0cc9cee9ed85ba18dd2f9c23e90ca051fc.tar.gz |
motion: Define macros for custom events
Define macros to define custom events used by sensor interrupt handlers.
Remove CONFIG_ for activity events.
BUG=none
BRANCH=none
TEST=compile, sensors work on eve.
Change-Id: I08ef6ed2a004466ebc5f7650d6952a150b9de713
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1272189
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/scarlet')
-rw-r--r-- | board/scarlet/board.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/board/scarlet/board.h b/board/scarlet/board.h index e440ef4948..1a682b93ba 100644 --- a/board/scarlet/board.h +++ b/board/scarlet/board.h @@ -86,12 +86,14 @@ /* Motion Sensors */ #define CONFIG_ACCELGYRO_BMI160 #define CONFIG_ACCEL_INTERRUPTS -#define CONFIG_ACCELGYRO_BMI160_INT_EVENT TASK_EVENT_CUSTOM(4) +#define CONFIG_ACCELGYRO_BMI160_INT_EVENT \ + TASK_EVENT_MOTION_SENSOR_INTERRUPT(LID_ACCEL) /* Camera VSYNC */ #define CONFIG_SYNC #define CONFIG_SYNC_COMMAND -#define CONFIG_SYNC_INT_EVENT TASK_EVENT_CUSTOM(5) +#define CONFIG_SYNC_INT_EVENT \ + TASK_EVENT_MOTION_SENSOR_INTERRUPT(VSYNC) /* To be able to indicate the device is in tablet mode. */ #define CONFIG_TABLET_MODE |