diff options
Diffstat (limited to 'include/task.h')
-rw-r--r-- | include/task.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/task.h b/include/task.h index d67cfc310c..9eb5a23b33 100644 --- a/include/task.h +++ b/include/task.h @@ -440,4 +440,16 @@ struct irq_def { #endif /* CONFIG_COMMON_RUNTIME */ #endif /* !CONFIG_ZEPHYR */ +#if defined(CONFIG_ZEPHYR) && defined(TEST_BUILD) +#include <kernel.h> + +/** + * @brief Get the Zephyr thread ID for the given task + * + * @param cros_tid A valid cros TASK_ID_* entry + * @return The Zephyr thread ID + */ +k_tid_t task_get_zephyr_tid(size_t cros_tid); +#endif /* CONFIG_ZEPHYR && TEST_BUILD */ + #endif /* __CROS_EC_TASK_H */ |