diff options
Diffstat (limited to 'zephyr/shim/include/zephyr_host_command.h')
-rw-r--r-- | zephyr/shim/include/zephyr_host_command.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/zephyr/shim/include/zephyr_host_command.h b/zephyr/shim/include/zephyr_host_command.h index 8619508c42..844f9ae395 100644 --- a/zephyr/shim/include/zephyr_host_command.h +++ b/zephyr/shim/include/zephyr_host_command.h @@ -13,6 +13,7 @@ #include <stdbool.h> #include <zephyr/init.h> +#include <zephyr/kernel.h> /* Initializes and runs the host command handler loop. */ void host_command_task(void *u); @@ -20,8 +21,17 @@ void host_command_task(void *u); /* Takes over the main thread and runs the host command loop. */ void host_command_main(void); -/* True if running in the main thread. */ -bool in_host_command_main(void); +/* + * Returns the main thread id. Will be the same as the HOSTCMD thread + * when CONFIG_TASK_HOSTCMD_THREAD_MAIN is enabled. + */ +k_tid_t get_main_thread(void); + +/* + * Returns the HOSTCMD thread id. Will be different than the main thread + * when CONFIG_TASK_HOSTCMD_THREAD_DEDICATED is enabled. + */ +k_tid_t get_hostcmd_thread(void); #ifdef CONFIG_PLATFORM_EC_HOSTCMD |