Embedded TCP/IP stack
4.7.0
|
fnet_shell_desc_t fnet_shell_init | ( | fnet_shell_params_t * | params | ) |
Initializes the Shell service.
params | Initialization parameters defined by fnet_shell_params_t. |
0
if an error occurs.This function executes the initialization of the shell service according to settings pointed to by params
parameters. It allocates all resources needed, and registers the shell service in the polling list.
After the initialization, the user application should call the main polling function fnet_service_poll() periodically to run the Shell service in background.
The shell service runs on asigned serial stream, executes parsing of the user-entered commands, and calls user-defined command functions, if the parsing was successful.