diff options
author | Jett Rink <jettrink@chromium.org> | 2020-11-03 16:53:40 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-15 03:54:53 +0000 |
commit | 20edcb845bf8f472adb7100e745d641a22acf400 (patch) | |
tree | 41895670211139f1fcf14e9299e0cc509a774c44 /zephyr/projects/volteer/include/shimmed_tasks.h | |
parent | 64710ef3f650490b85858f014d6c0aebe4af07db (diff) | |
download | chrome-ec-20edcb845bf8f472adb7100e745d641a22acf400.tar.gz |
volteer: add example shimmed tasks
Add example task to volteer. This will be replace by real tasks soon
BUG=b:171741620
TEST=compile volteer with example task
Change-Id: Ie11482cfe4abe884a0c98c90d570c3337e273606
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2518618
Reviewed-by: Simon Glass <sjg@chromium.org>
Commit-Queue: Jett Rink <jettrink@chromium.org>
Tested-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630138
Tested-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/projects/volteer/include/shimmed_tasks.h')
-rw-r--r-- | zephyr/projects/volteer/include/shimmed_tasks.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/zephyr/projects/volteer/include/shimmed_tasks.h b/zephyr/projects/volteer/include/shimmed_tasks.h new file mode 100644 index 0000000000..4cdaa53879 --- /dev/null +++ b/zephyr/projects/volteer/include/shimmed_tasks.h @@ -0,0 +1,26 @@ +/* Copyright 2020 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef __CROS_EC_SHIMMED_TASKS_H +#define __CROS_EC_SHIMMED_TASKS_H + +/* + * Manually define these HAS_TASK_* defines. There is a build time assert + * to at least verify we have the minimum set defined correctly. + */ +#define HAS_TASK_EXAMPLE 1 + +/* + * Highest priority on bottom -- same as in platform/ec. List of CROS_EC_TASK + * items. See CONFIG_TASK_LIST in platform/ec's config.h for more informaiton + */ +#define CROS_EC_TASK_LIST \ + CROS_EC_TASK(EXAMPLE, example_entry, 0, 512) + + +/* TODO remove once we have first shimmed volteer task */ +static inline void example_entry(void *p) {} + +#endif /* __CROS_EC_SHIMMED_TASKS_H */ |