diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2018-09-04 10:10:04 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-05-28 21:30:31 +0000 |
commit | d18859bee6110f7039a3268858bb068f56c3a496 (patch) | |
tree | 312d5190bf4d21b3c61539d6a3a39c1c93d05dc6 /board/poppy/board.h | |
parent | 4d38da5f607f10e283b5c6e635877ea75890bbff (diff) | |
download | chrome-ec-d18859bee6110f7039a3268858bb068f56c3a496.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>
(cherry picked from commit 4b9a3c0cc9cee9ed85ba18dd2f9c23e90ca051fc)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1631305
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Diana Z <dzigterman@chromium.org>
Tested-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/poppy/board.h')
-rw-r--r-- | board/poppy/board.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/poppy/board.h b/board/poppy/board.h index cf030f0c91..92d15ce0f7 100644 --- a/board/poppy/board.h +++ b/board/poppy/board.h @@ -126,7 +126,8 @@ #define CONFIG_ACCELGYRO_BMI160 #define CONFIG_MAG_BMI160_BMM150 #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) #define CONFIG_ACCELGYRO_SEC_ADDR BMM150_ADDR0 /* 8-bit address */ #define CONFIG_MAG_CALIBRATE /* Lower maximal ODR to 100Hz */ |