2007-03-21 21:02:52 +01:00
|
|
|
examples
|
|
|
|
^^^^^^^^
|
|
|
|
|
2007-07-01 20:23:03 +02:00
|
|
|
The examples directory contains several sample applications that
|
|
|
|
can be linked with nuttx. The specific example is selected in the
|
|
|
|
configs/<board-name>/defconfig file via the CONFIG_EXAMPLE setting.
|
|
|
|
For example,
|
|
|
|
|
|
|
|
CONFIG_EXAMPLE=ostest
|
|
|
|
|
|
|
|
Selects the examples/ostest example.
|
|
|
|
|
2007-03-21 21:02:52 +01:00
|
|
|
examples/ostest
|
2007-07-01 20:23:03 +02:00
|
|
|
^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This is the NuttX 'qualification' suite. It attempts to exercise
|
|
|
|
a broad set of OS functionality. Its coverage is not very extensive
|
|
|
|
as of this writing, but it is used to qualify each NuttX release.
|
2007-03-21 21:02:52 +01:00
|
|
|
|
2007-07-01 20:23:03 +02:00
|
|
|
The behavior of the ostest can be modified with the following
|
|
|
|
settings in the configs/<board-name>/defconfig file:
|
|
|
|
|
2008-06-01 19:50:07 +02:00
|
|
|
* CONFIG_EXAMPLES_OSTEST_LOOPS
|
|
|
|
Used to control the number of executions of the test. If
|
|
|
|
undefined, the test executes one time. If defined to be
|
|
|
|
zero, the test runs forever.
|
|
|
|
* CONFIG_EXAMPLES_OSTEST_STACKSIZE
|
2007-07-01 20:23:03 +02:00
|
|
|
Used to create the ostest task. Default is 8192.
|
2008-09-19 01:42:12 +02:00
|
|
|
* CONFIG_EXAMPLES_OSTEST_NBARRIER_THREADS
|
|
|
|
Specifies the number of threads to create in the barrier
|
|
|
|
test. The default is 8 but a smaller number may be needed on
|
|
|
|
systems without sufficient memory to start so many threads.
|
2007-03-21 21:02:52 +01:00
|
|
|
|
|
|
|
examples/nsh
|
2007-07-01 20:23:03 +02:00
|
|
|
^^^^^^^^^^^^
|
|
|
|
|
2008-02-07 15:41:11 +01:00
|
|
|
This directory contains the NuttShell (NSH). This is a simple
|
2008-09-03 19:29:17 +02:00
|
|
|
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
|
2007-12-10 14:28:01 +01:00
|
|
|
|
2007-05-13 23:47:36 +02:00
|
|
|
examples/mount
|
2007-07-01 20:23:03 +02:00
|
|
|
^^^^^^^^^^^^^^
|
2007-05-13 23:47:36 +02:00
|
|
|
|
2007-07-01 20:23:03 +02:00
|
|
|
This contains a simple test of filesystem mountpoints.
|
2008-09-06 15:29:14 +02:00
|
|
|
|
2008-06-01 22:08:20 +02:00
|
|
|
* CONFIG_EXAMPLES_MOUNT_DEVNAME
|
2008-08-10 16:50:27 +02:00
|
|
|
The name of the user-provided block device to mount.
|
|
|
|
If CONFIG_EXAMPLES_MOUNT_DEVNAME is not provided, then
|
|
|
|
a RAM disk will be configured.
|
|
|
|
|
|
|
|
* CONFIG_EXAMPLES_MOUNT_NSECTORS
|
|
|
|
The number of "sectors" in the RAM disk used when
|
|
|
|
CONFIG_EXAMPLES_MOUNT_DEVNAME is not defined.
|
|
|
|
|
|
|
|
* CONFIG_EXAMPLES_MOUNT_SECTORSIZE
|
|
|
|
The size of each sectors in the RAM disk used when
|
|
|
|
CONFIG_EXAMPLES_MOUNT_DEVNAME is not defined.
|
|
|
|
|
|
|
|
* CONFIG_EXAMPLES_MOUNT_RAMDEVNO
|
|
|
|
The RAM device minor number used to mount the RAM disk used
|
|
|
|
when CONFIG_EXAMPLES_MOUNT_DEVNAME is not defined. The
|
|
|
|
default is zero (meaning that "/dev/ram0" will be used).
|
2007-05-13 23:47:36 +02:00
|
|
|
|
2008-09-11 07:21:36 +02:00
|
|
|
examples/romfs
|
|
|
|
^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This example exercises the romfs filesystem. Configuration options
|
|
|
|
include:
|
|
|
|
|
|
|
|
* CONFIG_EXAMPLES_ROMFS_RAMDEVNO
|
|
|
|
The minor device number to use for the ROM disk. The default is
|
|
|
|
1 (meaning /dev/ram1)
|
|
|
|
|
|
|
|
* CONFIG_EXAMPLES_ROMFS_SECTORSIZE
|
|
|
|
The ROM disk sector size to use. Default is 64.
|
|
|
|
|
|
|
|
* CONFIG_EXAMPLES_ROMFS_MOUNTPOINT
|
|
|
|
The location to mount the ROM disk. Deafault: "/usr/local/share"
|
|
|
|
|
2007-03-21 21:02:52 +01:00
|
|
|
examples/null
|
2007-07-01 20:23:03 +02:00
|
|
|
^^^^^^^^^^^^^
|
2007-03-21 21:02:52 +01:00
|
|
|
|
2007-07-01 20:23:03 +02:00
|
|
|
This is the do nothing application. It is only used for bringing
|
2007-11-22 00:30:24 +01:00
|
|
|
up new NuttX architectures.
|
|
|
|
|
2008-09-19 16:57:57 +02:00
|
|
|
examples/hello
|
|
|
|
^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This is the mandatory, "Hello, World!!" example. It is little more
|
|
|
|
than examples/null with a single printf statement. Again useful only
|
|
|
|
for bringing up new NuttX architectures.
|
|
|
|
|
2007-11-22 00:30:24 +01:00
|
|
|
examples/uip
|
|
|
|
^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This is a port of uIP example application. It includes
|
|
|
|
conditionally compiled logic to exercise the uIP webserver,
|
|
|
|
webclient, telnet, smtp, dncpc, and resolver.
|
|
|
|
|
|
|
|
examples/netttest
|
|
|
|
^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This is a simple network test for verifying client- and server-
|
|
|
|
functionality in a TCP/IP connection.
|
|
|
|
|
2007-11-23 14:31:28 +01:00
|
|
|
examples/udp
|
|
|
|
^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This is a simple network test for verifying client- and server-
|
|
|
|
functionality over UDP.
|
|
|
|
|
2008-02-01 15:32:56 +01:00
|
|
|
examples/pashello
|
|
|
|
^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This is "Hello, World" implemented via the Pascal P-Code interpreter
|
|
|
|
|
2008-07-22 12:58:30 +02:00
|
|
|
examples/pipe
|
|
|
|
^^^^^^^^^^^^^
|
|
|
|
|
2008-08-10 16:50:27 +02:00
|
|
|
A test of the mkfifo() and pipe() APIs.
|
2008-02-01 15:32:56 +01:00
|
|
|
|
2008-08-10 16:50:27 +02:00
|
|
|
* CONFIG_EXAMPLES_PIPE_STACKSIZE
|
|
|
|
Sets the size of the stack to use when creating the child tasks.
|
|
|
|
The default size is 1024.
|
2008-10-07 21:04:20 +02:00
|
|
|
|
|
|
|
examples/usbserial
|
|
|
|
^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This is another implementation of "Hello, World" but this one uses
|
|
|
|
a USB serial driver.
|