nsh_syscmds: update rptun_ping to rpmsg_ping, add cmd_rpmsg.

To support rpmsg ioctl, add cmd_rpmsg function, and update rptun ping to rpmsg ping.
depends on apache/nuttx#11618

Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
This commit is contained in:
wangyongrong
2023-12-22 16:04:24 +08:00
committed by Xiang Xiao
parent b43340b0aa
commit 32f269a079
4 changed files with 82 additions and 35 deletions

View File

@@ -523,6 +523,12 @@ static const struct cmdmap_s g_cmdmap[] =
#endif
#endif
#if defined(CONFIG_RPMSG) && !defined(CONFIG_NSH_DISABLE_RPMSG)
CMD_MAP("rpmsg", cmd_rpmsg, 2, 7,
"<panic|dump|ping> <path|all>"
" [value|times length ack sleep]"),
#endif
#if defined(CONFIG_RPTUN) && !defined(CONFIG_NSH_DISABLE_RPTUN)
CMD_MAP("rptun", cmd_rptun, 2, 7,
"<start|stop|reset|panic|dump|ping> <path|all>"