Add skip= and count= options to the NSH hexdump command. From Ken Pettit

This commit is contained in:
Gregory Nutt
2013-11-01 07:15:14 -06:00
parent 716ca60638
commit 74b0933088
4 changed files with 109 additions and 25 deletions

View File

@@ -245,7 +245,11 @@ static const struct cmdmap_s g_cmdmap[] =
#if CONFIG_NFILE_DESCRIPTORS > 0
#ifndef CONFIG_NSH_DISABLE_HEXDUMP
#ifndef CONFIG_NSH_CMDOPT_HEXDUMP
{ "hexdump", cmd_hexdump, 2, 2, "<file or device>" },
#else
{ "hexdump", cmd_hexdump, 2, 4, "<file or device> [skip=<bytes>] [count=<bytes>]" },
#endif
#endif
#endif