Xiang Xiao
9d80399bd5
nsh: Accept the command line arguments like sh
...
Usage: nsh [<script-path>|-c <command>]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ifb76b27e7fd09d26b1f6e48c391fed0972018041
2020-08-19 14:32:53 -07:00
Xiang Xiao
b1b45de3db
Revert "nshlib: Move BOARDIOC_FINALINIT into nsh_initscript"
...
This reverts commit ac5632fc50
.
2020-04-19 10:15:23 -06:00
Xiang Xiao
650b58d6b2
nshlib: Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 08:07:06 -06:00
Xiang Xiao
9ab5e2ff45
nshlib: Add login argument to nsh_session for controling the login process
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 08:07:06 -06:00
Xiang Xiao
ac5632fc50
nshlib: Move BOARDIOC_FINALINIT into nsh_initscript
...
1.Avoid the code duplication
2.Call BOARDIOC_FINALINIT onnce and only once
3.Ensure BOARDIOC_FINALINIT get called in all case
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 08:07:06 -06:00
chao.an
86bfe13399
net/bringup: late net init after nsh script done
2020-02-26 16:11:44 +00:00
Xiang Xiao
857158451b
Unify the void cast usage
...
1.Remove void cast for function because many place ignore the returned value witout cast
2.Replace void cast for variable with UNUSED macro
Change-Id: Ie644129a563244a6397036789c4c3ea83c4e9b09
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-02 23:21:01 +08:00
Gregory Nutt
c4512f5ddf
apps/nshlib: Fix problem in last commit. CONFIG_BOARDCTL_FINALINIT=y is an insufficient condition for calling boardctl(BOARDIOC_FINALINIT, 0). Also need CONFIG_NSH_ARCHINIT=y.
2018-08-28 15:48:51 -06:00
ligd
93f1c13b62
apps/: Call BOARDIOC_FINALINIT after start-up script (or immediately after BOARIOC_INIT is there is no start-up script).
2018-08-28 15:44:03 -06:00
Oleg Evseev
8ee1e79d03
fix copy-paste typo in nsh_usbconsole.c
2017-06-19 15:05:06 +00:00
Gregory Nutt
6951366eca
Replace all calls to the OS internal usbdev_serialinitialize with proper calls to boardctl()
2016-03-25 16:00:28 -06:00
Gregory Nutt
a31300cb05
Replace calls to OS internal cdcacm_*, usbmsc_*, and composite_* with boardctl() calls
2016-03-25 13:26:00 -06:00
Gregory Nutt
aacfce081e
Fix several cosmetic, C coding style issues
2015-10-03 11:03:42 -06:00
Gregory Nutt
4542091dac
NSH USB Console: Add logic to restart the console wait if an error occurs while reading from the console. In USB console startup, the logic must be able to open the USB serial and receive 3 newlines. However, it the USB driver is disconnected or otherwise fails before the 3 newlines are received, the receive loop becomes a killer, infinite loop, CPU hog. Noted by spasbyspas
2014-11-16 06:48:46 -06:00
Gregory Nutt
9a49735c4b
NSH: Add an option to take stdin from a USB keyboard device
2014-07-03 16:25:02 -06:00