From 4b9a3c0cc9cee9ed85ba18dd2f9c23e90ca051fc Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Tue, 4 Sep 2018 10:10:04 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/1272189 Reviewed-by: Jett Rink --- board/nautilus/board.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'board/nautilus') diff --git a/board/nautilus/board.h b/board/nautilus/board.h index c64a33a724..acbed5897e 100644 --- a/board/nautilus/board.h +++ b/board/nautilus/board.h @@ -113,7 +113,8 @@ #define CONFIG_MKBP_EVENT #define CONFIG_MKBP_USE_HOST_EVENT #define CONFIG_ACCELGYRO_BMI160 -#define CONFIG_ACCELGYRO_BMI160_INT_EVENT TASK_EVENT_CUSTOM(4) +#define CONFIG_ACCELGYRO_BMI160_INT_EVENT \ + TASK_EVENT_MOTION_SENSOR_INTERRUPT(BASE_ACCEL) #define CONFIG_ACCELGYRO_BMI160_INT2_OUTPUT #define CONFIG_ACCEL_BMA255 #define CONFIG_ACCEL_INTERRUPTS -- cgit v1.2.1