Add time and uptime
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3506 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
75ce6ddea3
commit
729251122c
@ -52,6 +52,8 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
#include <nuttx/version.h>
|
||||||
|
|
||||||
#ifndef CONFIG_NSH_DISABLEBG
|
#ifndef CONFIG_NSH_DISABLEBG
|
||||||
# include <pthread.h>
|
# include <pthread.h>
|
||||||
#endif
|
#endif
|
||||||
@ -341,8 +343,22 @@ static const struct cmdmap_s g_cmdmap[] =
|
|||||||
* Public Data
|
* Public Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
/* If NuttX versioning information is available, Include that information
|
||||||
|
* in the NSH greeting.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if CONFIG_VERSION_MAJOR != 0 || CONFIG_VERSION_MINOR != 0
|
||||||
|
const char g_nshgreeting[] = "\nNuttShell (NSH) NuttX-" CONFIG_VERSION_STRING "\n
|
||||||
|
#else
|
||||||
const char g_nshgreeting[] = "\nNuttShell (NSH)\n";
|
const char g_nshgreeting[] = "\nNuttShell (NSH)\n";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* The NSH prompt */
|
||||||
|
|
||||||
const char g_nshprompt[] = "nsh> ";
|
const char g_nshprompt[] = "nsh> ";
|
||||||
|
|
||||||
|
/* Common, message formats */
|
||||||
|
|
||||||
const char g_nshsyntax[] = "nsh: %s: syntax error\n";
|
const char g_nshsyntax[] = "nsh: %s: syntax error\n";
|
||||||
const char g_fmtargrequired[] = "nsh: %s: missing required argument(s)\n";
|
const char g_fmtargrequired[] = "nsh: %s: missing required argument(s)\n";
|
||||||
const char g_fmtarginvalid[] = "nsh: %s: argument invalid\n";
|
const char g_fmtarginvalid[] = "nsh: %s: argument invalid\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user