shell: If enabled, let's register telnet console as an input
Change-Id: I476ca0f7914b02d2523a341560023c7e334d8b1b Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
1d9402b3e3
commit
f7b0e35c5f
1 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,9 @@
|
||||||
#ifdef CONFIG_UART_CONSOLE
|
#ifdef CONFIG_UART_CONSOLE
|
||||||
#include <console/uart_console.h>
|
#include <console/uart_console.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_TELNET_CONSOLE
|
||||||
|
#include <console/telnet_console.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <shell/shell.h>
|
#include <shell/shell.h>
|
||||||
|
|
||||||
|
@ -526,6 +529,9 @@ void shell_init(const char *str)
|
||||||
#ifdef CONFIG_UART_CONSOLE
|
#ifdef CONFIG_UART_CONSOLE
|
||||||
uart_register_input(&avail_queue, &cmds_queue, completion);
|
uart_register_input(&avail_queue, &cmds_queue, completion);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_TELNET_CONSOLE
|
||||||
|
telnet_register_input(&avail_queue, &cmds_queue, completion);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @brief Optionally register an app default cmd handler.
|
/** @brief Optionally register an app default cmd handler.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue