diff options
author | Jett Rink <jettrink@chromium.org> | 2020-10-29 16:39:21 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-05 21:52:05 +0000 |
commit | 5ed63c8607fe6b58bfeb5ab1580d2c1585250846 (patch) | |
tree | a00f04c1d35381a4f3dfabf1865d1df3c8f31b40 /zephyr/shim/include/board.h | |
parent | 00844d592d2db088abb32bbfdafa7e1cf3832561 (diff) | |
download | chrome-ec-5ed63c8607fe6b58bfeb5ab1580d2c1585250846.tar.gz |
zephyr: add task shim
Provide shim/translation layer for converting platform/ec tasks into
zephyr threads. Provide implementation API for platform/ec task_ API
BRANCH=none
BUG=b:171741620
TEST=unit test provided
TEST=clean_build.sh ~/chromiumos/src/platform/ec/zephyr/tests/tasks &&
../build/zephyr/zephyr.elf
Change-Id: Ia2a1f808ec56a89c2a08df9de318edb1b6e9f869
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2518665
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/shim/include/board.h')
-rw-r--r-- | zephyr/shim/include/board.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/zephyr/shim/include/board.h b/zephyr/shim/include/board.h index 2a54b097b0..186edb5864 100644 --- a/zephyr/shim/include/board.h +++ b/zephyr/shim/include/board.h @@ -15,4 +15,9 @@ #include <gpio_map.h> #endif +/* Once SHIMMED_TASKS is enabled, must provide a shimmed_tasks header */ +#ifdef CONFIG_SHIMMED_TASKS +#include "shimmed_tasks.h" +#endif + #endif /* __BOARD_H */ |