diff options
Diffstat (limited to 'zephyr/app/ec/ec_app_main.c')
-rw-r--r-- | zephyr/app/ec/ec_app_main.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/zephyr/app/ec/ec_app_main.c b/zephyr/app/ec/ec_app_main.c index 80f5b64bce..c35ce7f888 100644 --- a/zephyr/app/ec/ec_app_main.c +++ b/zephyr/app/ec/ec_app_main.c @@ -5,6 +5,7 @@ #include <kernel.h> #include <sys/printk.h> +#include <shell/shell_uart.h> #include <zephyr.h> #include "button.h" @@ -89,6 +90,21 @@ void ec_app_main(void) hook_notify(HOOK_INIT); } + + /* + * Increase priority of shell thread. + * This is temporary code that'll be removed + * after the feature outlined in bug b/191795553 + * is implemented. + */ + { + static const struct shell *shell; + + shell = shell_backend_uart_get_ptr(); + k_thread_priority_set(shell->ctx->tid, + K_HIGHEST_APPLICATION_THREAD_PRIO); + } + /* * Print the init time. Not completely accurate because it can't take * into account the time before timer_init(), but it'll at least catch |