From 90995b4a525442b448384e8c5e6d77f541283c4d Mon Sep 17 00:00:00 2001 From: Hyungwoo Yang Date: Tue, 19 Jan 2021 21:18:36 -0800 Subject: zephyr: add motion sense support Add support for motion sense in zephyr. This change adds basic functions for motion sense task to do meaningful work. sensor_map.h included by board.h will be used to get board specific sensor configuration. BUG=b:173507858 BRANCH=none TEST=make buildall -j8 build volteer on zephyr Signed-off-by: Hyungwoo Yang Change-Id: I906316d2e97428cf46b9a15071666c8e3b039b18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2638909 Reviewed-by: Jack Rosenthal Commit-Queue: Jack Rosenthal Tested-by: Jack Rosenthal --- zephyr/shim/include/shimmed_tasks.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zephyr/shim/include/shimmed_tasks.h') diff --git a/zephyr/shim/include/shimmed_tasks.h b/zephyr/shim/include/shimmed_tasks.h index f75dffff20..4db1672a30 100644 --- a/zephyr/shim/include/shimmed_tasks.h +++ b/zephyr/shim/include/shimmed_tasks.h @@ -31,6 +31,10 @@ #define HAS_TASK_KEYPROTO 1 #endif /* CONFIG_HAS_TASK_KEYPROTO */ +#ifdef CONFIG_HAS_TASK_MOTIONSENSE +#define HAS_TASK_MOTIONSENSE 1 +#endif /* CONFIG_HAS_TASK_MOTIONSENSE */ + #ifdef CONFIG_HAS_TASK_PD_C0 #define HAS_TASK_PD_C0 1 #endif /* CONFIG_HAS_TASK_PD_C0 */ -- cgit v1.2.1