shell: Make shell UART backend initialization priority configurable

Closes: #28331

Configurable initialization priority is useful when using CDC ACM
serial device, for example.

Signed-off-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@nordicsemi.no>
This commit is contained in:
Ievgenii Meshcheriakov 2020-09-12 14:45:16 +02:00 committed by Maureen Helm
commit b00170436b
2 changed files with 10 additions and 1 deletions

View file

@ -297,7 +297,8 @@ static int enable_shell_uart(const struct device *arg)
return 0;
}
SYS_INIT(enable_shell_uart, POST_KERNEL, 0);
SYS_INIT(enable_shell_uart, POST_KERNEL,
CONFIG_SHELL_BACKEND_SERIAL_INIT_PRIORITY);
const struct shell *shell_backend_uart_get_ptr(void)
{