diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-09-03 17:29:17 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-09-03 17:29:17 +0000 |
commit | 842f404d2b07c21c80232a63384055d46386be0e (patch) | |
tree | 8d426f1aaba7679e9f200021c0ae3f95bd9d1226 /nuttx/examples/README.txt | |
parent | 18c2739aa6486a0d6dd7f19a8ee36058f1d62674 (diff) | |
download | px4-nuttx-842f404d2b07c21c80232a63384055d46386be0e.tar.gz px4-nuttx-842f404d2b07c21c80232a63384055d46386be0e.tar.bz2 px4-nuttx-842f404d2b07c21c80232a63384055d46386be0e.zip |
Add NSH README file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@873 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/README.txt')
-rw-r--r-- | nuttx/examples/README.txt | 131 |
1 files changed, 3 insertions, 128 deletions
diff --git a/nuttx/examples/README.txt b/nuttx/examples/README.txt index 469a84b92..138653653 100644 --- a/nuttx/examples/README.txt +++ b/nuttx/examples/README.txt @@ -31,134 +31,9 @@ examples/nsh ^^^^^^^^^^^^ This directory contains the NuttShell (NSH). This is a simple - shell-like application. With some additional development, NSH will - someday be a great NuttX application debugger. At present, NSH - supports the following commands: - - Command Depends on Configuration - ---------- -------------------------- - [ !CONFIG_EXAMPLES_NSH_DISABLESCRIPT - cat CONFIG_NFILE_DESCRIPTORS > 0 - cd !CONFIG_DISABLE_ENVIRON && CONFIG_NFILE_DESCRIPTORS > 0 - cp CONFIG_NFILE_DESCRIPTORS > 0 - echo -- - exec -- - exit -- - help -- - ifconfig CONFIG_NET - ls CONFIG_NFILE_DESCRIPTORS > 0 - mb,mh,mw --- - mem --- - mkdir !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 - mkfatfs !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_FAT - mkfifo !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 - mount !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_FAT - ping CONFIG_NET && CONFIG_NET_ICMP && CONFIG_NET_ICMP_PING && !CONFIG_DISABLE_CLOCK && !CONFIG_DISABLE_SIGNALS - ps -- - pwd !CONFIG_DISABLE_ENVIRON && CONFIG_NFILE_DESCRIPTORS > 0 - rm !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 - rmdir !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 - set !CONFIG_DISABLE_ENVIRON - sh CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0 && !CONFIG_EXAMPLES_NSH_DISABLESCRIPT - sleep !CONFIG_DISABLE_SIGNALS - test !CONFIG_EXAMPLES_NSH_DISABLESCRIPT - umount !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_FAT - unset !CONFIG_DISABLE_ENVIRON - usleep !CONFIG_DISABLE_SIGNALS - - Test syntax: - - expression = simple-expression | !expression | - expression -o expression | expression -a expression - - simple-expression = unary-expression | binary-expression - - unary-expression = string-unary | file-unary - - string-unary = -n string | -z string - - file-unary = -b file | -c file | -d file | -e file | -f file | - -r file | -s file | -w file - - binary-expression = string-binary | numeric-binary - - string-binary = string = string | string == string | string != string - - numeric-binary = integer -eq integer | integer -ge integer | - integer -gt integer | integer -le integer | - integer -lt integer | integer -ne integer - - Other behavior of NSH can be modified with the following settings in - the configs/<board-name>/defconfig file: - - * CONFIG_EXAMPLES_NSH_FILEIOSIZE - Size of a static I/O buffer used for file access (ignored if - there is no filesystem). - - * CONFIG_EXAMPLES_NSH_STRERROR - strerror(errno) makes more readable output but strerror() is - very large and will not be used unless this setting is 'y' - - * CONFIG_EXAMPLES_NSH_LINELEN - The maximum length of one command line and of one output line. - Default: 80 - - * CONFIG_EXAMPLES_NSH_STACKSIZE - The stack size to use when spawning new threads or tasks. Such - new threads are generated when a command is executed in background - or as new TELNET connections are established. - - * CONFIG_EXAMPLES_NSH_NESTDEPTH - The maximum number of nested if-then[-else]-fi sequences that - are permissable. Default: 3 - - * CONFIG_EXAMPLES_NSH_DISABLESCRIPT - This can be set to 'y' to suppress support for scripting. This - setting disables the 'sh', 'test', and '[' commands and the - if-then[-else]-fi construct. This would only be set on systems - where a minimal footprint is a necessity and scripting is not. - - * CONFIG_EXAMPLES_NSH_DISABLEBG - This can be set to 'y' to suppress support for background - commands. This setting disables the 'nice' command prefix and - the '&' command suffix. This would only be set on systems - where a minimal footprint is a necessity and background command - execution is not. - - * CONFIG_EXAMPLES_NSH_CONSOLE - If CONFIG_EXAMPLES_NSH_CONSOLE is set to 'y', then a serial - console front-end is selected. - - * CONFIG_EXAMPLES_NSH_TELNET - If CONFIG_EXAMPLES_NSH_TELNET is set to 'y', then a TELENET - server front-end is selected. When this option is provided, - you may log into NuttX remotely using telnet in order to - access NSH. - - One or both of CONFIG_EXAMPLES_NSH_CONSOLE and CONFIG_EXAMPLES_NSH_TELNET - must be defined. If CONFIG_EXAMPLES_NSH_TELNET is selected, then there some - other configuration settings that apply: - - * CONFIG_EXAMPLES_NSH_IOBUFFER_SIZE - Determines the size of the I/O buffer to use for sending/ - receiving TELNET commands/reponses - - * CONFIG_EXAMPLES_NSH_DHCPC - Obtain the the IP address via DHCP. - - * CONFIG_EXAMPLES_NSH_IPADDR - If CONFIG_EXAMPLES_NSH_DHCPC is NOT set, then the static IP - address must be provided. - - * CONFIG_EXAMPLES_NSH_DRIPADDR - Default router IP address - - * CONFIG_EXAMPLES_NSH_NETMASK - Network mask - - * CONFIG_EXAMPLES_NSH_NOMAC - Set if your ethernet hardware has no built-in MAC address. - If set, a bogus MAC will be assigned. + shell application. With some additional development, NSH will + someday be a great NuttX application debugger. NSH is described + in its own README located at examples/nsh/README.txt examples/mount ^^^^^^^^^^^^^^ |