nshlib: Split shell functionality from nsh to sh

1.Improve the compatiblity as other OS
2.Avoid call nsh_initialize more than once

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-04-19 02:02:09 +08:00
committed by patacongo
parent 3f9302561c
commit de8a56d149
6 changed files with 74 additions and 66 deletions

View File

@@ -42,6 +42,8 @@
#include <nuttx/config.h>
#include <arpa/inet.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/