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/nocturne/board.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'board/nocturne') diff --git a/board/nocturne/board.h b/board/nocturne/board.h index 15464dfba7..99984ae3ea 100644 --- a/board/nocturne/board.h +++ b/board/nocturne/board.h @@ -98,9 +98,11 @@ #define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO / 3) #define CONFIG_ACCEL_INTERRUPTS #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(LID_ACCEL) #define CONFIG_SYNC -#define CONFIG_SYNC_INT_EVENT TASK_EVENT_CUSTOM(8) +#define CONFIG_SYNC_INT_EVENT \ + TASK_EVENT_MOTION_SENSOR_INTERRUPT(VSYNC) #define CONFIG_TEMP_SENSOR #define CONFIG_TEMP_SENSOR_BD99992GW #define CONFIG_THERMISTOR_NCP15WB -- cgit v1.2.1