summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/shimmed_task_id.h
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-01-13 15:36:03 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-29 21:57:42 +0000
commit40b2572cf845020c9380fb7052af5a2d804ac1c9 (patch)
treea536fe731586f903f2ffb4406793ad606ce5948b /zephyr/shim/include/shimmed_task_id.h
parent46622826a247f5e2ee3d487861ee9d192bd1086e (diff)
downloadchrome-ec-40b2572cf845020c9380fb7052af5a2d804ac1c9.tar.gz
zephyr: add HOOKS task
Enable the HOOKS task so the periodic HOOK_TICK and HOOK_SECONDS are called. HOOK_TICK is required by the PWM LED support. BUG=b:174851299 BRANCH=none TEST=make buildall, zmake testall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Id00f38833d05e32b921d92d2441831058294c994 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2636481 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/shim/include/shimmed_task_id.h')
-rw-r--r--zephyr/shim/include/shimmed_task_id.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zephyr/shim/include/shimmed_task_id.h b/zephyr/shim/include/shimmed_task_id.h
index f0999834cc..3b66c03168 100644
--- a/zephyr/shim/include/shimmed_task_id.h
+++ b/zephyr/shim/include/shimmed_task_id.h
@@ -40,6 +40,9 @@ typedef uint8_t task_id_t;
COND_CODE_1(HAS_TASK_MOTIONSENSE, \
(CROS_EC_TASK(MOTIONSENSE, motion_sense_task, 0, \
CONFIG_TASK_MOTIONSENSE_STACK_SIZE)), ()) \
+ COND_CODE_1(HAS_TASK_HOOKS, \
+ (CROS_EC_TASK(HOOKS, hook_task, 0, \
+ CONFIG_TASK_HOOKS_STACK_SIZE)), ()) \
COND_CODE_1(HAS_TASK_HOSTCMD, \
(CROS_EC_TASK(HOSTCMD, host_command_task, 0, \
CONFIG_TASK_HOSTCMD_STACK_SIZE)), ()) \