2007-03-23 03:24:38 +01:00
|
|
|
Board-Specific Configurations
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
Table of Contents
|
|
|
|
^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
o Board-Specific Configurations
|
|
|
|
o Summary of Files
|
|
|
|
o Supported Architectures
|
|
|
|
o Configuring NuttX
|
|
|
|
|
|
|
|
Board-Specific Configurations
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2007-03-27 23:27:41 +02:00
|
|
|
The NuttX configuration consists of:
|
|
|
|
|
|
|
|
o Processor architecture specific files. These are the files contained
|
|
|
|
in the arch/<arch-name>/ directory.
|
|
|
|
|
|
|
|
o Chip/SoC specific files. Each processor processor architecture
|
|
|
|
is embedded in chip or System-on-a-Chip (SoC) architecture. The
|
|
|
|
full chip architecture includes the processor architecture plus
|
|
|
|
chip-specific interrupt logic, general purpose I/O (GIO) logic, and
|
|
|
|
specialized, internal peripherals (such as UARTs, USB, etc.).
|
|
|
|
|
|
|
|
These chip-specific files are contained within chip-specific
|
|
|
|
sub-directories in the arch/<arch-name>/ directory and are selected
|
|
|
|
via the CONFIG_ARCH_name selection
|
|
|
|
|
|
|
|
o Board specific files. In order to be usable, the chip must be
|
|
|
|
contained in a board environment. The board configuration defines
|
|
|
|
additional properties of the board including such things as
|
|
|
|
peripheral LEDs, external peripherals (such as network, USB, etc.).
|
|
|
|
|
|
|
|
These board-specific configuration files can be found in the
|
|
|
|
configs/<board-name>/ sub-directories and are discussed in this
|
2008-02-07 15:41:11 +01:00
|
|
|
README. Additional configuration information maybe available in
|
|
|
|
board-specific configs/<board-name>/README.txt files.
|
2007-03-27 23:27:41 +02:00
|
|
|
|
2007-03-23 03:24:38 +01:00
|
|
|
The configs/ subdirectory contains configuration data for each board. These
|
|
|
|
board-specific configurations plus the architecture-specific configurations in
|
2007-03-27 23:27:41 +02:00
|
|
|
the arch/ subdirectory completely define a customized port of NuttX.
|
2007-03-23 03:24:38 +01:00
|
|
|
|
|
|
|
Directory Structure
|
|
|
|
^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
The configs directory contains board specific configurationlogic. Each
|
|
|
|
board must provide a subdirectory <board-name> under configs/ with the
|
|
|
|
following characteristics:
|
|
|
|
|
|
|
|
|
|
|
|
<board-name>
|
2011-04-06 17:04:57 +02:00
|
|
|
|-- README.txt
|
2007-03-26 18:47:17 +02:00
|
|
|
|-- include/
|
2007-03-27 23:27:41 +02:00
|
|
|
| `-- (board-specific header files)
|
2007-03-27 00:14:28 +02:00
|
|
|
|-- src/
|
2007-03-27 23:27:41 +02:00
|
|
|
| |-- Makefile
|
|
|
|
| `-- (board-specific source files)
|
2011-04-06 17:04:57 +02:00
|
|
|
|-- <config1-dir>
|
2008-02-07 15:41:11 +01:00
|
|
|
| |-- Make.defs
|
|
|
|
| |-- defconfig
|
2011-03-18 18:22:50 +01:00
|
|
|
| |-- appconfig*
|
2008-02-07 15:41:11 +01:00
|
|
|
| `-- setenv.sh
|
2011-04-06 17:04:57 +02:00
|
|
|
|-- <config2-dir>
|
2008-02-07 15:41:11 +01:00
|
|
|
| |-- Make.defs
|
|
|
|
| |-- defconfig
|
2011-03-18 18:22:50 +01:00
|
|
|
| |-- appconfig*
|
2008-02-07 15:41:11 +01:00
|
|
|
| `-- setenv.sh
|
|
|
|
...
|
2011-03-18 18:22:50 +01:00
|
|
|
|
|
|
|
*optional
|
|
|
|
|
2007-03-23 03:24:38 +01:00
|
|
|
Summary of Files
|
|
|
|
^^^^^^^^^^^^^^^^
|
2007-03-26 18:47:17 +02:00
|
|
|
|
2010-10-04 17:24:20 +02:00
|
|
|
README.txt -- This text file provides additional information unique to
|
|
|
|
each board configuration sub-directory.
|
|
|
|
|
2007-03-27 00:14:28 +02:00
|
|
|
include/ -- This directory contains board specific header files. This
|
2007-03-26 18:47:17 +02:00
|
|
|
directory will be linked as include/arch/board at configuration time and
|
|
|
|
can be included via '#include <arch/board/header.h>'. These header file
|
|
|
|
can only be included by files in arch/<arch-name>include/ and
|
|
|
|
arch/<arch-name>/src
|
2007-03-27 00:14:28 +02:00
|
|
|
|
|
|
|
src/ -- This directory contains board specific drivers. This
|
|
|
|
directory will be linked as arch/<arch-name>/src/board at configuration
|
|
|
|
time and will be integrated into the build system.
|
|
|
|
|
|
|
|
src/Makefile -- This makefile will be invoked to build the board specific
|
|
|
|
drivers. It must support the following targets: libext$(LIBEXT), clean,
|
|
|
|
and distclean.
|
2007-03-23 03:24:38 +01:00
|
|
|
|
2008-02-07 15:41:11 +01:00
|
|
|
A board may have various different configurations using these common source
|
|
|
|
files. Each board configuration is described by three files: Make.defs,
|
|
|
|
defconfig, and setenv.sh. Typically, each set of configuration files is
|
|
|
|
retained in a separate configuration sub-directory (<config1-dir>,
|
|
|
|
<config2-dir>, .. in the above diagram).
|
|
|
|
|
2007-03-23 03:24:38 +01:00
|
|
|
Make.defs -- This makefile fragment provides architecture and
|
|
|
|
tool-specific build options. It will be included by all other
|
|
|
|
makefiles in the build (once it is installed). This make fragment
|
|
|
|
should define:
|
|
|
|
|
|
|
|
Tools: CC, LD, AR, NM, OBJCOPY, OBJDUMP
|
|
|
|
Tool options: CFLAGS, LDFLAGS
|
2008-01-10 14:38:13 +01:00
|
|
|
COMPILE, ASSEMBLE, ARCHIVE, CLEAN, and MKDEP macros
|
2007-03-23 03:24:38 +01:00
|
|
|
|
|
|
|
When this makefile fragment runs, it will be passed TOPDIR which
|
|
|
|
is the path to the root directory of the build. This makefile
|
|
|
|
fragment may include ${TOPDIR}/.config to perform configuration
|
|
|
|
specific settings. For example, the CFLAGS will most likely be
|
|
|
|
different if CONFIG_DEBUG=y.
|
|
|
|
|
|
|
|
defconfig -- This is a configuration file similar to the Linux
|
2008-02-07 15:41:11 +01:00
|
|
|
configuration file. In contains variable/value pairs like:
|
2007-03-23 03:24:38 +01:00
|
|
|
|
|
|
|
CONFIG_VARIABLE=value
|
|
|
|
|
|
|
|
This configuration file will be used at build time:
|
|
|
|
|
2011-05-07 18:59:20 +02:00
|
|
|
(1) as a makefile fragment included in other makefiles, and
|
|
|
|
(2) to generate include/nuttx/config.h which is included by
|
2011-04-06 17:04:57 +02:00
|
|
|
most C files in the system.
|
2007-03-23 03:24:38 +01:00
|
|
|
|
|
|
|
The following variables are recognized by the build (you may
|
|
|
|
also include architecture/board-specific settings).
|
|
|
|
|
|
|
|
Architecture selection:
|
|
|
|
|
2007-04-25 02:09:44 +02:00
|
|
|
CONFIG_ARCH - Identifies the arch/ subdirectory
|
|
|
|
CONFIG_ARCH_name - For use in C code
|
|
|
|
CONFIG_ARCH_CHIP - Identifies the arch/*/chip subdirectory
|
|
|
|
CONFIG_ARCH_CHIP_name - For use in C code
|
|
|
|
CONFIG_ARCH_BOARD - Identifies the configs subdirectory and
|
|
|
|
hence, the board that supports the particular chip or SoC.
|
|
|
|
CONFIG_ARCH_BOARD_name - For use in C code
|
2008-10-06 18:20:53 +02:00
|
|
|
CONFIG_ENDIAN_BIG - define if big endian (default is little
|
|
|
|
endian)
|
2008-11-07 17:59:36 +01:00
|
|
|
CONFIG_ARCH_NOINTC - define if the architecture does not
|
|
|
|
support an interrupt controller or otherwise cannot support
|
|
|
|
APIs like up_enable_irq() and up_disable_irq().
|
|
|
|
CONFIG_ARCH_IRQPRIO
|
|
|
|
Define if the architecture suports prioritizaton of interrupts
|
|
|
|
and the up_prioritize_irq() API.
|
2007-03-23 03:24:38 +01:00
|
|
|
|
2008-02-15 23:14:00 +01:00
|
|
|
Some architectures require a description of the RAM configuration:
|
2007-04-28 22:05:36 +02:00
|
|
|
|
|
|
|
CONFIG_DRAM_SIZE - Describes the installed DRAM.
|
|
|
|
CONFIG_DRAM_START - The start address of DRAM (physical)
|
2008-02-15 23:14:00 +01:00
|
|
|
CONFIG_DRAM_VSTART - The start address of DRAM (virtual)
|
2007-04-28 22:05:36 +02:00
|
|
|
|
2010-08-29 16:27:58 +02:00
|
|
|
General build options:
|
2008-01-06 21:46:45 +01:00
|
|
|
|
|
|
|
CONFIG_RRLOAD_BINARY - make the rrload binary format used with
|
2008-09-16 23:45:41 +02:00
|
|
|
BSPs from www.ridgerun.com using the tools/mkimage.sh script.
|
|
|
|
CONFIG_INTELHEX_BINARY - make the Intel HEX binary format
|
|
|
|
used with many different loaders using the GNU objcopy program
|
|
|
|
Should not be selected if you are not using the GNU toolchain.
|
2008-11-05 23:16:22 +01:00
|
|
|
CONFIG_MOTOROLA_SREC - make the Motorola S-Record binary format
|
|
|
|
used with many different loaders using the GNU objcopy program
|
|
|
|
Should not be selected if you are not using the GNU toolchain.
|
2008-09-18 01:14:42 +02:00
|
|
|
CONFIG_RAW_BINARY - make a raw binary format file used with many
|
|
|
|
different loaders using the GNU objcopy program. This option
|
|
|
|
should not be selected if you are not using the GNU toolchain.
|
2008-01-06 21:46:45 +01:00
|
|
|
CONFIG_HAVE_LIBM - toolchain supports libm.a
|
2009-04-19 18:52:56 +02:00
|
|
|
CONFIG_HAVE_CXX - toolchain supports C++ and CXX, CXXFLAGS, and
|
|
|
|
COMPILEXX have been defined in the configuratins Make.defs
|
|
|
|
file.
|
2008-01-06 21:46:45 +01:00
|
|
|
|
2010-08-29 16:27:58 +02:00
|
|
|
Building application code:
|
2007-03-23 03:24:38 +01:00
|
|
|
|
2011-03-21 22:59:35 +01:00
|
|
|
CONFIG_APPS_DIR - Identifies the directory that builds the
|
|
|
|
application to link with NuttX. Default: ../apps This symbol must be assigned
|
2010-08-28 20:06:51 +02:00
|
|
|
to the path to the application build directory *relative* to
|
2011-03-20 20:30:39 +01:00
|
|
|
the NuttX top build direcory. If you had an application
|
2011-04-06 17:04:57 +02:00
|
|
|
directory and the NuttX directory each in separate directory
|
2011-03-20 20:30:39 +01:00
|
|
|
trees like this:
|
2010-08-28 20:06:51 +02:00
|
|
|
|
|
|
|
build
|
|
|
|
|-nuttx
|
|
|
|
| |
|
|
|
|
| `- Makefile
|
|
|
|
`-application
|
|
|
|
|
|
|
|
|
`- Makefile
|
|
|
|
|
2011-03-21 22:59:35 +01:00
|
|
|
Then you would set CONFIG_APPS_DIR=../application.
|
2010-08-28 20:06:51 +02:00
|
|
|
|
|
|
|
The application direction must contain Makefile and this make
|
|
|
|
file must support the following targets:
|
|
|
|
|
2011-03-21 22:59:35 +01:00
|
|
|
- libapps$(LIBEXT) (usually libapps.a). libapps.a is a static
|
2011-05-07 18:59:20 +02:00
|
|
|
library ( an archive) that contains all of application object
|
|
|
|
files.
|
2010-08-28 20:06:51 +02:00
|
|
|
- clean. Do whatever is appropriate to clean the application
|
2011-05-07 18:59:20 +02:00
|
|
|
directories for a fresh build.
|
2010-08-28 20:06:51 +02:00
|
|
|
- distclean. Clean everthing -- auto-generated files, symbolic
|
2011-05-07 18:59:20 +02:00
|
|
|
links etc. -- so that the directory contents are the same as
|
|
|
|
the contents in your configuration management system.
|
|
|
|
This is only done when you change the NuttX configuration.
|
2010-08-28 20:06:51 +02:00
|
|
|
- depend. Make or update the application build dependencies.
|
|
|
|
|
2011-03-20 20:30:39 +01:00
|
|
|
When this application is invoked it will receive the setting TOPDIR like:
|
2010-08-28 20:06:51 +02:00
|
|
|
|
2011-05-07 18:59:20 +02:00
|
|
|
$(MAKE) -C $(CONFIG_APPS_DIR) TOPDIR="$(TOPDIR)" <target>
|
2010-08-28 20:06:51 +02:00
|
|
|
|
|
|
|
TOPDIR is the full path to the NuttX directory. It can be used, for
|
|
|
|
example, to include makefile fragments (e.g., .config or Make.defs)
|
|
|
|
or to set up include file paths.
|
|
|
|
|
2010-08-29 16:27:58 +02:00
|
|
|
Two-pass build options. If the 2 pass build option is selected, then these
|
|
|
|
options configure the make system build a extra link object. This link object
|
|
|
|
is assumed to be an incremental (relative) link object, but could be a static
|
|
|
|
library (archive) (some modification to this Makefile would be required if
|
2011-04-03 16:26:05 +02:00
|
|
|
CONFIG_PASS1_TARGET generates an archive). Pass 1 1ncremental (relative) link
|
|
|
|
objects should be put into the processor-specific source directory (where other
|
2010-08-29 16:27:58 +02:00
|
|
|
link objects will be created). If the pass1 obect is an archive, it could
|
|
|
|
go anywhere.
|
|
|
|
|
|
|
|
CONFIG_BUILD_2PASS - Enables the two pass build options.
|
|
|
|
|
|
|
|
When the two pass build option is enabled, the following also apply:
|
|
|
|
|
2011-04-03 16:26:05 +02:00
|
|
|
CONFIG_PASS1_TARGET - The name of the first pass build target. This
|
|
|
|
can be specific build target, a special build target (all, default, etc.)
|
|
|
|
or may just be left undefined.
|
2010-08-29 16:27:58 +02:00
|
|
|
CONFIG_PASS1_BUILDIR - The path, relative to the top NuttX build
|
|
|
|
directory to directory that contains the Makefile to build the
|
|
|
|
first pass object. The Makefile must support the following targets:
|
2011-04-03 16:26:05 +02:00
|
|
|
- The special target CONFIG_PASS1_TARGET (if defined)
|
2010-08-29 16:27:58 +02:00
|
|
|
- and the usual depend, clean, and distclean targets.
|
2011-04-03 16:26:05 +02:00
|
|
|
CONFIG_PASS1_OBJECT - May be used to include an extra, pass1 object
|
|
|
|
into the final link. This would probably be the object generated
|
|
|
|
from the CONFIG_PASS1_TARGET. It may be available at link time
|
|
|
|
in the arch/<architecture>/src directory.
|
2010-08-29 16:27:58 +02:00
|
|
|
|
|
|
|
General OS setup
|
|
|
|
|
2007-03-23 03:24:38 +01:00
|
|
|
CONFIG_DEBUG - enables built-in debug options
|
|
|
|
CONFIG_DEBUG_VERBOSE - enables verbose debug output
|
2009-09-15 16:18:15 +02:00
|
|
|
CONFIG_DEBUG_SYMBOLS - build without optimization and with
|
|
|
|
debug symbols (needed for use with a debugger).
|
2007-11-23 23:32:52 +01:00
|
|
|
CONFIG_DEBUG_SCHED - enable OS debug output (disabled by
|
|
|
|
default)
|
|
|
|
CONFIG_DEBUG_MM - enable memory management debug output
|
2008-02-07 15:41:11 +01:00
|
|
|
(disabled by default)
|
2007-11-23 23:32:52 +01:00
|
|
|
CONFIG_DEBUG_NET - enable network debug output (disabled
|
|
|
|
by default)
|
2009-09-15 16:18:15 +02:00
|
|
|
CONFIG_DEBUG_USB - enable usb debug output (disabled by
|
|
|
|
default)
|
2007-11-24 14:59:57 +01:00
|
|
|
CONFIG_DEBUG_FS - enable filesystem debug output (disabled
|
|
|
|
by default)
|
|
|
|
CONFIG_DEBUG_LIB - enable C library debug output (disabled
|
|
|
|
by default)
|
2009-09-15 16:18:15 +02:00
|
|
|
CONFIG_DEBUG_BINFMT - enable binary loader debug output (disabled
|
|
|
|
by default)
|
|
|
|
CONFIG_DEBUG_GRAPHICS - enable NX graphics debug output
|
|
|
|
(disabled by default)
|
2008-02-20 13:55:07 +01:00
|
|
|
CONFIG_ARCH_LOWPUTC - architecture supports low-level, boot
|
2007-03-23 03:24:38 +01:00
|
|
|
time console output
|
|
|
|
CONFIG_MM_REGIONS - If the architecture includes multiple
|
|
|
|
regions of memory to allocate from, this specifies the
|
|
|
|
number of memory regions that the memory manager must
|
|
|
|
handle and enables the API mm_addregion(start, end);
|
2007-06-09 17:49:44 +02:00
|
|
|
CONFIG_TICKS_PER_MSEC - The default system timer is 100Hz
|
|
|
|
or TICKS_PER_MSEC=10. This setting may be defined to
|
|
|
|
inform NuttX that the processor hardware is providing
|
|
|
|
system timer interrupts at some interrupt interval other
|
|
|
|
than 10 msec.
|
2007-03-23 03:24:38 +01:00
|
|
|
CONFIG_RR_INTERVAL - The round robin timeslice will be set
|
|
|
|
this number of milliseconds; Round robin scheduling can
|
|
|
|
be disabled by setting this value to zero.
|
|
|
|
CONFIG_SCHED_INSTRUMENTATION - enables instrumentation in
|
|
|
|
scheduler to monitor system performance
|
2008-02-07 15:41:11 +01:00
|
|
|
CONFIG_TASK_NAME_SIZE - Specifies that maximum size of a
|
2007-03-23 03:24:38 +01:00
|
|
|
task name to save in the TCB. Useful if scheduler
|
|
|
|
instrumentation is selected. Set to zero to disable.
|
|
|
|
CONFIG_START_YEAR, CONFIG_START_MONTH, CONFIG_START_DAY -
|
|
|
|
Used to initialize the internal time logic.
|
2009-07-11 19:24:14 +02:00
|
|
|
CONFIG_GREGORIAN_TIME - Enables Gregorian time conversions.
|
|
|
|
You would only need this if you are concerned about accurate
|
|
|
|
time conversions in the past or in the distant future.
|
|
|
|
CONFIG_JULIAN_TIME - Enables Julian time conversions. You
|
|
|
|
would only need this if you are concerned about accurate
|
|
|
|
time conversion in the distand past. You must also define
|
|
|
|
CONFIG_GREGORIAN_TIME in order to use Julian time.
|
2007-03-23 03:24:38 +01:00
|
|
|
CONFIG_DEV_CONSOLE - Set if architecture-specific logic
|
|
|
|
provides /dev/console. Enables stdout, stderr, stdin.
|
2009-03-09 00:33:41 +01:00
|
|
|
CONFIG_MUTEX_TYPES - Set to enable support for recursive and
|
2008-05-31 19:13:08 +02:00
|
|
|
errorcheck mutexes. Enables pthread_mutexattr_settype().
|
2009-03-09 00:33:41 +01:00
|
|
|
CONFIG_PRIORITY_INHERITANCE - Set to enable support for
|
|
|
|
priority inheritance on mutexes and semaphores.
|
2009-03-13 01:25:05 +01:00
|
|
|
CONFIG_SEM_PREALLOCHOLDERS: This setting is only used if priority
|
|
|
|
inheritance is enabled. It defines the maximum number of
|
|
|
|
different threads (minus one) that can take counts on a
|
|
|
|
semaphore with priority inheritance support. This may be
|
|
|
|
set to zero if priority inheritance is disabled OR if you
|
|
|
|
are only using semaphores as mutexes (only one holder) OR
|
|
|
|
if no more than two threads participate using a counting
|
|
|
|
semaphore.
|
2009-03-13 01:54:10 +01:00
|
|
|
CONFIG_SEM_NNESTPRIO. If priority inheritance is enabled,
|
|
|
|
then this setting is the maximum number of higher priority
|
|
|
|
threads (minus 1) than can be waiting for another thread
|
|
|
|
to release a count on a semaphore. This value may be set
|
|
|
|
to zero if no more than one thread is expected to wait for
|
|
|
|
a semaphore.
|
2009-06-15 21:50:06 +02:00
|
|
|
CONFIG_FDCLONE_DISABLE. Disable cloning of all file descriptors
|
2009-06-15 23:44:27 +02:00
|
|
|
by task_create() when a new task is started. If set, all
|
|
|
|
files/drivers will appear to be closed in the new task.
|
2009-06-15 21:50:06 +02:00
|
|
|
CONFIG_FDCLONE_STDIO. Disable cloning of all but the first
|
|
|
|
three file descriptors (stdin, stdout, stderr) by task_create()
|
2009-06-15 23:44:27 +02:00
|
|
|
when a new task is started. If set, all files/drivers will
|
|
|
|
appear to be closed in the new task except for stdin, stdout,
|
|
|
|
and stderr.
|
2009-06-15 21:50:06 +02:00
|
|
|
CONFIG_SDCLONE_DISABLE. Disable cloning of all socket
|
2009-06-15 23:44:27 +02:00
|
|
|
desciptors by task_create() when a new task is started. If
|
|
|
|
set, all sockets will appear to be closed in the new task.
|
2009-06-18 23:17:53 +02:00
|
|
|
CONFIG_NXFLAT. Enable support for the NXFLAT binary format.
|
|
|
|
This format will support execution of NuttX binaries located
|
|
|
|
in a ROMFS filesystem (see examples/nxflat).
|
2009-11-06 00:14:34 +01:00
|
|
|
CONFIG_SCHED_WORKQUEUE. Create a dedicated "worker" thread to
|
|
|
|
handle delayed processing from interrupt handlers. This feature
|
|
|
|
is required for some drivers but, if there are not complaints,
|
|
|
|
can be safely disabled. The worker thread also performs
|
|
|
|
garbage collection -- completing any delayed memory deallocations
|
|
|
|
from interrupt handlers. If the worker thread is disabled,
|
|
|
|
then that clean will be performed by the IDLE thread instead
|
|
|
|
(which runs at the lowest of priority and may not be appropriate
|
|
|
|
if memory reclamation is of high priority). If CONFIG_SCHED_WORKQUEUE
|
|
|
|
is enabled, then the following options can also be used:
|
|
|
|
CONFIG_SCHED_WORKPRIORITY - The execution priority of the worker
|
|
|
|
thread. Default: 50
|
|
|
|
CONFIG_SCHED_WORKPERIOD - How often the worker thread checks for
|
2009-11-18 01:08:41 +01:00
|
|
|
work in units of microseconds. Default: 50*1000 (50 MS).
|
2009-11-06 00:14:34 +01:00
|
|
|
CONFIG_SCHED_WORKSTACKSIZE - The stack size allocated for the worker
|
|
|
|
thread. Default: CONFIG_IDLETHREAD_STACKSIZE.
|
|
|
|
CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
|
|
|
|
the worker thread. Default: 4
|
2007-03-23 03:24:38 +01:00
|
|
|
|
2011-04-06 17:04:57 +02:00
|
|
|
Kernel build options:
|
|
|
|
CONFIG_NUTTX_KERNEL - Builds NuttX as a separately compiled kernel.
|
|
|
|
CONFIG_SYS_RESERVED - Reserved system call values for use
|
|
|
|
by architecture-specific logic.
|
|
|
|
|
2011-05-07 18:59:20 +02:00
|
|
|
OS setup related to on-demand paging:
|
2010-08-15 23:50:50 +02:00
|
|
|
|
|
|
|
CONFIG_PAGING - If set =y in your configation file, this setting will
|
2010-08-17 03:37:39 +02:00
|
|
|
enable the on-demand paging feature as described in
|
|
|
|
http://www.nuttx.org/NuttXDemandPaging.html.
|
2010-08-15 23:50:50 +02:00
|
|
|
|
2011-05-07 18:59:20 +02:00
|
|
|
If CONFIG_PAGING is selected, then you will probabaly need CONFIG_BUILD_2PASS to
|
|
|
|
correctly position the code and the following configuration options also apply:
|
2010-08-15 23:50:50 +02:00
|
|
|
|
2010-08-17 03:37:39 +02:00
|
|
|
CONFIG_PAGING_PAGESIZE - The size of one managed page. This must
|
|
|
|
be a value supported by the processor's memory management unit.
|
2010-08-22 02:48:43 +02:00
|
|
|
CONFIG_PAGING_NLOCKED - This is the number of locked pages in the
|
2010-08-17 03:37:39 +02:00
|
|
|
memory map. The locked address region will then be from
|
|
|
|
CONFIG_DRAM_VSTART through (CONFIG_DRAM_VSTART +
|
|
|
|
CONFIG_PAGING_PAGESIZE*CONFIG_PAGING_NLOCKED)
|
2010-08-22 02:48:43 +02:00
|
|
|
CONFIG_PAGING_LOCKED_PBASE and CONFIG_PAGING_LOCKED_VBASE - These
|
|
|
|
may be defined to determine the base address of the locked page
|
|
|
|
regions. If neither are defined, the logic will be set the bases
|
|
|
|
to CONFIG_DRAM_START and CONFIG_DRAM_VSTART (i.e., it assumes
|
|
|
|
that the base address of the locked region is at the beginning
|
|
|
|
of RAM).
|
|
|
|
NOTE: In some architectures, it may be necessary to take some
|
|
|
|
memory from the beginning of this region for vectors or for a
|
|
|
|
page table. In such cases, CONFIG_PAGING_LOCKED_P/VBASE should
|
|
|
|
take that into consideration to prevent overlapping the locked
|
|
|
|
memory region and the system data at the beginning of SRAM.
|
|
|
|
CONFIG_PAGING_NPPAGED - This is the number of physical pages
|
|
|
|
available to support the paged text region. This paged region
|
|
|
|
begins at (CONFIG_PAGING_LOCKED_PBASE + CONFIG_PAGING_PAGESIZE*CONFIG_PAGING_NPPAGED)
|
|
|
|
and continues until (CONFIG_PAGING_LOCKED_PBASE + CONFIG_PAGING_PAGESIZE*(CONFIG_PAGING_NLOCKED +
|
|
|
|
CONFIG_PAGING_NPPAGED)
|
|
|
|
CONFIG_PAGING_NVPAGED - This actual size of the paged text region
|
|
|
|
(in pages). This is also the number of virtual pages required to
|
|
|
|
support the entire paged region. The on-demand paging feature is
|
|
|
|
intended to support only the case where the virtual paged text
|
|
|
|
area is much larger the available physical pages. Otherwise, why
|
|
|
|
would you enable on-demand paging?
|
|
|
|
CONFIG_PAGING_NDATA - This is the number of data pages in the memory
|
|
|
|
map. The data region will extend to the end of RAM unless overridden
|
|
|
|
by a setting in the configuration file.
|
|
|
|
NOTE: In some architectures, it may be necessary to take some memory
|
|
|
|
from the end of RAM for page tables or other system usage. The
|
|
|
|
configuration settings and linker directives must be cognizant of that:
|
|
|
|
CONFIG_PAGING_NDATA should be defined to prevent the data region from
|
|
|
|
extending all the way to the end of memory.
|
2010-08-15 23:50:50 +02:00
|
|
|
CONFIG_PAGING_DEFPRIO - The default, minimum priority of the page fill
|
|
|
|
worker thread. The priority of the page fill work thread will be boosted
|
|
|
|
boosted dynmically so that it matches the priority of the task on behalf
|
|
|
|
of which it peforms the fill. This defines the minimum priority that
|
|
|
|
will be used. Default: 50.
|
|
|
|
CONFIG_PAGING_STACKSIZE - Defines the size of the allocated stack
|
|
|
|
for the page fill worker thread. Default: 1024.
|
|
|
|
CONFIG_PAGING_BLOCKINGFILL - The architecture specific up_fillpage()
|
|
|
|
function may be blocking or non-blocking. If defined, this setting
|
|
|
|
indicates that the up_fillpage() implementation will block until the
|
|
|
|
transfer is completed. Default: Undefined (non-blocking).
|
2010-08-22 02:48:43 +02:00
|
|
|
CONFIG_PAGING_WORKPERIOD - The page fill worker thread will wake periodically
|
|
|
|
even if there is no mapping to do. This selection controls that wake-up
|
|
|
|
period (in microseconds). This wake-up a failsafe that will handle any
|
|
|
|
cases where a single is lost (that would really be a bug and shouldn't
|
|
|
|
happen!) and also supports timeouts for case of non-blocking, asynchronous
|
|
|
|
fills (see CONFIG_PAGING_TIMEOUT_TICKS).
|
2010-08-15 23:50:50 +02:00
|
|
|
CONFIG_PAGING_TIMEOUT_TICKS - If defined, the implementation will monitor
|
|
|
|
the (asynchronous) page fill logic. If the fill takes longer than this
|
|
|
|
number if microseconds, then a fatal error will be declared.
|
2010-08-17 03:37:39 +02:00
|
|
|
Default: No timeouts monitored.
|
2010-08-15 23:50:50 +02:00
|
|
|
|
2011-05-07 18:59:20 +02:00
|
|
|
Some architecture-specific settings. Defaults are architecture specific.
|
|
|
|
If you don't know what you are doing, it is best to leave these undefined
|
|
|
|
and try the system defaults:
|
2010-08-22 02:48:43 +02:00
|
|
|
|
|
|
|
CONFIG_PAGING_VECPPAGE - This the physical address of the page in
|
|
|
|
memory to be mapped to the vector address.
|
|
|
|
CONFIG_PAGING_VECL2PADDR - This is the physical address of the L2
|
|
|
|
page table entry to use for the vector mapping.
|
|
|
|
CONFIG_PAGING_VECL2VADDR - This is the virtual address of the L2
|
|
|
|
page table entry to use for the vector mapping.
|
2010-09-08 19:38:44 +02:00
|
|
|
CONFIG_PAGING_BINPATH - If CONFIG_PAGING_BINPATH is defined, then it
|
|
|
|
is the full path to a file on a mounted file system that contains
|
|
|
|
a binary image of the NuttX executable. Pages will be filled by
|
|
|
|
reading from offsets into this file that correspond to virtual
|
|
|
|
fault addresses.
|
2010-09-09 00:06:38 +02:00
|
|
|
CONFIG_PAGING_MOUNTPT - If CONFIG_PAGING_BINPATH is defined, additional
|
|
|
|
options may be provided to control the initialization of underlying
|
|
|
|
devices. CONFIG_PAGING_MOUNTPT identifies the mountpoint to be used
|
|
|
|
if a device is mounted.
|
|
|
|
CONFIG_PAGING_MINOR - Some mount operations require a "minor" number
|
|
|
|
to identify the specific device instance. Default: 0
|
|
|
|
CONFIG_PAGING_SDSLOT - If CONFIG_PAGING_BINPATH is defined, additional
|
|
|
|
options may be provided to control the initialization of underlying
|
|
|
|
devices. CONFIG_PAGING_SDSLOT identifies the slot number of the SD
|
|
|
|
device to initialize. This must be undefined if SD is not being used.
|
|
|
|
This should be defined to be zero for the typical device that has
|
|
|
|
only a single slot (See CONFIG_MMCSD_NSLOTS). If defined,
|
|
|
|
CONFIG_PAGING_SDSLOT will instruct certain board-specific logic to
|
|
|
|
initialize the media in this SD slot.
|
2010-09-11 03:58:26 +02:00
|
|
|
CONFIG_PAGING_M25PX - Use the m25px.c FLASH driver. If this is selected,
|
2010-09-11 05:24:26 +02:00
|
|
|
then the MTD interface to the M25Px device will be used to support
|
2010-09-11 03:58:26 +02:00
|
|
|
paging.
|
2010-09-12 04:22:13 +02:00
|
|
|
CONFIG_PAGING_AT45DB - Use the at45db.c FLASH driver. If this is selected,
|
|
|
|
then the MTD interface to the Atmel AT45DB device will be used to support
|
|
|
|
paging.
|
2010-12-07 04:06:19 +01:00
|
|
|
CONFIG_PAGING_BINOFFSET - If CONFIG_PAGING_M25PX or is CONFIG_PAGING_AT45DB
|
|
|
|
defined then CONFIG_PAGING_BINOFFSET will be used to specify the offset
|
2010-09-11 03:58:26 +02:00
|
|
|
in bytes into the FLASH device where the NuttX binary image is located.
|
|
|
|
Default: 0
|
2010-12-07 04:06:19 +01:00
|
|
|
CONFIG_PAGING_SPIPORT - If CONFIG_PAGING_M25PX CONFIG_PAGING_AT45DB is
|
2011-05-07 18:59:20 +02:00
|
|
|
defined and the device has multiple SPI busses (ports), then this
|
2010-12-07 04:06:19 +01:00
|
|
|
configuration should be set to indicate which SPI port the device is
|
|
|
|
connected. Default: 0
|
2010-08-22 02:48:43 +02:00
|
|
|
|
2007-03-23 03:24:38 +01:00
|
|
|
The following can be used to disable categories of APIs supported
|
|
|
|
by the OS. If the compiler supports weak functions, then it
|
|
|
|
should not be necessary to disable functions unless you want to
|
|
|
|
restrict usage of those APIs.
|
|
|
|
|
|
|
|
There are certain dependency relationships in these features.
|
|
|
|
|
|
|
|
o mq_notify logic depends on signals to awaken tasks
|
|
|
|
waiting for queues to become full or empty.
|
|
|
|
o pthread_condtimedwait() depends on signals to wake
|
|
|
|
up waiting tasks.
|
|
|
|
|
|
|
|
CONFIG_DISABLE_CLOCK, CONFIG_DISABLE_POSIX_TIMERS, CONFIG_DISABLE_PTHREAD.
|
2007-06-30 19:05:44 +02:00
|
|
|
CONFIG_DISABLE_SIGNALS, CONFIG_DISABLE_MQUEUE, CONFIG_DISABLE_MOUNTPOUNT,
|
2008-11-16 23:05:28 +01:00
|
|
|
CONFIG_DISABLE_ENVIRON, CONFIG_DISABLE_POLL
|
2007-03-23 03:24:38 +01:00
|
|
|
|
|
|
|
Misc libc settings
|
|
|
|
|
|
|
|
CONFIG_NOPRINTF_FIELDWIDTH - sprintf-related logic is a
|
|
|
|
little smaller if we do not support fieldwidthes
|
2010-03-14 18:54:16 +01:00
|
|
|
CONFIG_LIBC_FLOATINGPOINT - By default, floating point
|
|
|
|
support in printf, sscanf, etc. is disabled.
|
2007-03-23 03:24:38 +01:00
|
|
|
|
|
|
|
Allow for architecture optimized implementations
|
|
|
|
|
|
|
|
The architecture can provide optimized versions of the
|
2008-02-07 15:41:11 +01:00
|
|
|
following to improve system performance
|
2007-03-23 03:24:38 +01:00
|
|
|
|
|
|
|
CONFIG_ARCH_MEMCPY, CONFIG_ARCH_MEMCMP, CONFIG_ARCH_MEMMOVE
|
|
|
|
CONFIG_ARCH_MEMSET, CONFIG_ARCH_STRCMP, CONFIG_ARCH_STRCPY
|
2010-10-27 22:54:11 +02:00
|
|
|
CONFIG_ARCH_STRNCPY, CONFIG_ARCH_STRLEN, CONFIG_ARCH_STRNLEN
|
2011-04-05 17:50:01 +02:00
|
|
|
CONFIG_ARCH_BZERO
|
2007-03-23 03:24:38 +01:00
|
|
|
|
2011-05-12 20:07:05 +02:00
|
|
|
The architecture may provide custom versions of certain
|
|
|
|
standard header files:
|
|
|
|
|
|
|
|
CONFIG_ARCH_MATH_H, CONFIG_ARCH_STDBOOL_H, CONFIG_ARCH_STDINT_H
|
|
|
|
|
2007-03-23 03:24:38 +01:00
|
|
|
Sizes of configurable things (0 disables)
|
|
|
|
|
|
|
|
CONFIG_MAX_TASKS - The maximum number of simultaneously
|
|
|
|
active tasks. This value must be a power of two.
|
|
|
|
CONFIG_NPTHREAD_KEYS - The number of items of thread-
|
|
|
|
specific data that can be retained
|
|
|
|
CONFIG_NFILE_DESCRIPTORS - The maximum number of file
|
|
|
|
descriptors (one for each open)
|
|
|
|
CONFIG_NFILE_STREAMS - The maximum number of streams that
|
|
|
|
can be fopen'ed
|
|
|
|
CONFIG_NAME_MAX - The maximum size of a file name.
|
|
|
|
CONFIG_STDIO_BUFFER_SIZE - Size of the buffer to allocate
|
|
|
|
on fopen. (Only if CONFIG_NFILE_STREAMS > 0)
|
2011-05-14 17:21:04 +02:00
|
|
|
CONFIG_STDIO_LINEBUFFER - If standard C buffered I/O is enabled
|
|
|
|
(CONFIG_STDIO_BUFFER_SIZE > 0), then this option may be added
|
|
|
|
to force automatic, line-oriented flushing the output buffer
|
|
|
|
for printf() fprintf(), and vfprintf(). When a newline is
|
|
|
|
encountered in the format string, the output buffer will be
|
|
|
|
flushed. This (slightly) increases the NuttX footprint but
|
|
|
|
supports the kind of behavior that people expect for printf.
|
2007-03-23 03:24:38 +01:00
|
|
|
CONFIG_NUNGET_CHARS - Number of characters that can be
|
|
|
|
buffered by ungetc() (Only if CONFIG_NFILE_STREAMS > 0)
|
|
|
|
CONFIG_PREALLOC_MQ_MSGS - The number of pre-allocated message
|
|
|
|
structures. The system manages a pool of preallocated
|
|
|
|
message structures to minimize dynamic allocations
|
2010-07-12 18:18:44 +02:00
|
|
|
CONFIG_PREALLOC_IGMPGROUPS - Pre-allocated IGMP groups are used
|
|
|
|
only if needed from interrupt level group created (by the IGMP server).
|
|
|
|
Default: 4.
|
2007-03-23 03:24:38 +01:00
|
|
|
CONFIG_MQ_MAXMSGSIZE - Message structures are allocated with
|
|
|
|
a fixed payload size given by this settin (does not include
|
|
|
|
other message structure overhead.
|
|
|
|
CONFIG_PREALLOC_WDOGS - The number of pre-allocated watchdog
|
|
|
|
structures. The system manages a pool of preallocated
|
|
|
|
watchdog structures to minimize dynamic allocations
|
2008-07-26 16:02:46 +02:00
|
|
|
CONFIG_DEV_PIPE_SIZE - Size, in bytes, of the buffer to allocated
|
|
|
|
for pipe and FIFO support
|
2007-03-23 03:24:38 +01:00
|
|
|
|
2008-10-23 22:51:26 +02:00
|
|
|
Filesystem configuration
|
|
|
|
CONFIG_FS_FAT - Enable FAT filesystem support
|
|
|
|
CONFIG_FAT_SECTORSIZE - Max supported sector size
|
2011-05-07 18:59:20 +02:00
|
|
|
CONFIG_FS_NXFFS: Enable NuttX FLASH file system (NXFF) support.
|
|
|
|
CONFIG_NXFFS_ERASEDSTATE: The erased state of FLASH.
|
|
|
|
This must have one of the values of 0xff or 0x00.
|
|
|
|
Default: 0xff.
|
|
|
|
CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
|
|
|
don't both with file chunks smaller than this number of data bytes.
|
|
|
|
Default: 32.
|
|
|
|
CONFIG_NXFFS_MAXNAMLEN: The maximum size of an NXFFS file name.
|
|
|
|
Default: 255.
|
|
|
|
CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
|
|
|
don't both with file chunks smaller than this number of data bytes.
|
|
|
|
Default: 32.
|
|
|
|
CONFIG_NXFFS_TAILTHRESHOLD: clean-up can either mean
|
|
|
|
packing files together toward the end of the file or, if file are
|
|
|
|
deleted at the end of the file, clean up can simply mean erasing
|
|
|
|
the end of FLASH memory so that it can be re-used again. However,
|
|
|
|
doing this can also harm the life of the FLASH part because it can
|
|
|
|
mean that the tail end of the FLASH is re-used too often. This
|
|
|
|
threshold determines if/when it is worth erased the tail end of FLASH
|
|
|
|
and making it available for re-use (and possible over-wear).
|
|
|
|
Default: 8192.
|
2008-10-23 22:51:26 +02:00
|
|
|
CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
2011-05-08 16:42:42 +02:00
|
|
|
CONFIG_FS_RAMMAP - For file systems that do not support XIP, this
|
|
|
|
option will enable a limited form of memory mapping that is
|
|
|
|
implemented by copying whole files into memory.
|
2008-10-23 22:51:26 +02:00
|
|
|
|
2010-05-15 03:15:52 +02:00
|
|
|
SPI driver
|
|
|
|
CONFIG_SPI_OWNBUS - Set if there is only one active device
|
|
|
|
on the SPI bus. No locking or SPI configuration will be performed.
|
|
|
|
It is not necessary for clients to lock, re-configure, etc..
|
|
|
|
CONFIG_SPI_EXCHANGE - Driver supports a single exchange method
|
|
|
|
(vs a recvblock() and sndblock ()methods)
|
|
|
|
|
2008-10-23 22:51:26 +02:00
|
|
|
SPI-based MMC/SD driver
|
|
|
|
CONFIG_MMCSD_NSLOTS - Number of MMC/SD slots supported by the
|
|
|
|
driver. Default is one.
|
|
|
|
CONFIG_MMCSD_READONLY - Provide read-only access. Default is
|
|
|
|
Read/Write
|
2009-05-26 18:07:25 +02:00
|
|
|
CONFIG_MMCSD_SPICLOCK - Maximum SPI clock to drive MMC/SD card.
|
|
|
|
Default is 20MHz.
|
2008-10-23 22:51:26 +02:00
|
|
|
|
2009-11-18 00:20:08 +01:00
|
|
|
SDIO-based MMC/SD driver
|
|
|
|
CONFIG_FS_READAHEAD - Enable read-ahead buffering
|
|
|
|
CONFIG_FS_WRITEBUFFER - Enable write buffering
|
|
|
|
CONFIG_SDIO_DMA - SDIO driver supports DMA
|
|
|
|
CONFIG_MMCSD_MMCSUPPORT - Enable support for MMC cards
|
|
|
|
CONFIG_MMCSD_HAVECARDDETECT - SDIO driver card detection is
|
|
|
|
100% accurate
|
2011-03-06 16:39:02 +01:00
|
|
|
CONFIG_SDIO_WIDTH_D1_ONLY - Select 1-bit transfer mode. Default:
|
|
|
|
4-bit transfer mode.
|
2009-11-18 00:20:08 +01:00
|
|
|
|
2010-05-15 03:15:52 +02:00
|
|
|
RiT P14201 OLED driver
|
|
|
|
CONFIG_LCD_P14201 - Enable P14201 support
|
|
|
|
CONFIG_P14201_SPIMODE - Controls the SPI mode
|
|
|
|
CONFIG_P14201_FREQUENCY - Define to use a different bus frequency
|
|
|
|
CONFIG_P14201_NINTERFACES - Specifies the number of physical P14201
|
|
|
|
devices that will be supported.
|
|
|
|
CONFIG_P14201_FRAMEBUFFER - If defined, accesses will be performed
|
|
|
|
using an in-memory copy of the OLEDs GDDRAM. This cost of this
|
|
|
|
buffer is 128 * 96 / 2 = 6Kb. If this is defined, then the driver
|
2010-05-15 20:57:24 +02:00
|
|
|
will be fully functional. If not, then it will have the following
|
2010-05-15 03:15:52 +02:00
|
|
|
limitations:
|
|
|
|
- Reading graphics memory cannot be supported, and
|
|
|
|
- All pixel writes must be aligned to byte boundaries.
|
2010-05-15 20:57:24 +02:00
|
|
|
The latter limitation effectively reduces the 128x96 disply to 64x96.
|
2010-05-15 03:15:52 +02:00
|
|
|
|
2010-12-06 06:15:14 +01:00
|
|
|
Nokia 6100 Configuration Settings:
|
|
|
|
|
|
|
|
CONFIG_NOKIA6100_SPIMODE - Controls the SPI mode
|
|
|
|
CONFIG_NOKIA6100_FREQUENCY - Define to use a different bus frequency
|
|
|
|
CONFIG_NOKIA6100_NINTERFACES - Specifies the number of physical Nokia
|
|
|
|
6100 devices that will be supported.
|
|
|
|
CONFIG_NOKIA6100_BPP - Device supports 8, 12, and 16 bits per pixel.
|
|
|
|
CONFIG_NOKIA6100_S1D15G10 - Selects the Epson S1D15G10 display controller
|
|
|
|
CONFIG_NOKIA6100_PCF8833 - Selects the Phillips PCF8833 display controller
|
|
|
|
CONFIG_NOKIA6100_BLINIT - Initial backlight setting
|
|
|
|
|
2010-12-07 04:06:19 +01:00
|
|
|
The following may need to be tuned for your hardware:
|
|
|
|
CONFIG_NOKIA6100_INVERT - Display inversion, 0 or 1, Default: 1
|
|
|
|
CONFIG_NOKIA6100_MY - Display row direction, 0 or 1, Default: 0
|
|
|
|
CONFIG_NOKIA6100_MX - Display column direction, 0 or 1, Default: 1
|
|
|
|
CONFIG_NOKIA6100_V - Display address direction, 0 or 1, Default: 0
|
|
|
|
CONFIG_NOKIA6100_ML - Display scan direction, 0 or 1, Default: 0
|
|
|
|
CONFIG_NOKIA6100_RGBORD - Display RGB order, 0 or 1, Default: 0
|
|
|
|
|
2010-12-06 06:15:14 +01:00
|
|
|
Required LCD driver settings:
|
|
|
|
CONFIG_LCD_NOKIA6100 - Enable Nokia 6100 support
|
|
|
|
CONFIG_LCD_MAXCONTRAST - must be 63 with the Epson controller and 127 with
|
|
|
|
the Phillips controller.
|
|
|
|
CONFIG_LCD_MAXPOWER - Maximum value of backlight setting. The backlight
|
|
|
|
control is managed outside of the 6100 driver so this value has no
|
|
|
|
meaning to the driver. Board-specific logic may place restrictions on
|
|
|
|
this value.
|
|
|
|
|
2010-05-15 03:15:52 +02:00
|
|
|
ENC28J60 Ethernet Driver Configuration Settings:
|
|
|
|
CONFIG_NET_ENC28J60 - Enabled ENC28J60 support
|
|
|
|
CONFIG_ENC28J60_SPIMODE - Controls the SPI mode
|
|
|
|
CONFIG_ENC28J60_FREQUENCY - Define to use a different bus frequency
|
|
|
|
CONFIG_ENC28J60_NINTERFACES - Specifies the number of physical ENC28J60
|
|
|
|
devices that will be supported.
|
|
|
|
CONFIG_ENC28J60_STATS - Collect network statistics
|
|
|
|
CONFIG_ENC28J60_HALFDUPPLEX - Default is full duplex
|
|
|
|
|
2011-03-17 14:44:45 +01:00
|
|
|
Networking support via uIP
|
2007-09-01 20:06:15 +02:00
|
|
|
CONFIG_NET - Enable or disable all network features
|
2011-03-17 14:44:45 +01:00
|
|
|
CONFIG_NET_NOINTS -- CONFIG_NET_NOINT indicates that uIP not called from
|
|
|
|
the interrupt level. If CONFIG_NET_NOINTS is defined, critical sections
|
|
|
|
will be managed with semaphores; Otherwise, it assumed that uIP will be
|
|
|
|
called from interrupt level handling and critical sections will be
|
|
|
|
managed by enabling and disabling interrupts.
|
|
|
|
CONFIG_NET_MULTIBUFFER - Traditionally, uIP has used a single buffer
|
|
|
|
for all incoming and outgoing traffic. If this configuration is
|
|
|
|
selected, then the driver can manage multiple I/O buffers and can,
|
|
|
|
for example, be filling one input buffer while sending another
|
|
|
|
output buffer. Or, as another example, the driver may support
|
|
|
|
queuing of concurrent input/ouput and output transfers for better
|
|
|
|
performance.
|
2007-09-01 20:06:15 +02:00
|
|
|
CONFIG_NET_IPv6 - Build in support for IPv6
|
2007-11-06 00:04:16 +01:00
|
|
|
CONFIG_NSOCKET_DESCRIPTORS - Maximum number of socket descriptors
|
2010-08-22 02:48:43 +02:00
|
|
|
per task/thread.
|
2008-09-01 15:59:54 +02:00
|
|
|
CONFIG_NET_NACTIVESOCKETS - Maximum number of concurrent socket
|
|
|
|
operations (recv, send, etc.). Default: CONFIG_NET_TCP_CONNS+CONFIG_NET_UDP_CONNS
|
2007-09-08 21:50:59 +02:00
|
|
|
CONFIG_NET_SOCKOPTS - Enable or disable support for socket options
|
|
|
|
|
2007-11-20 00:09:39 +01:00
|
|
|
CONFIG_NET_BUFSIZE - uIP buffer size
|
2007-11-22 15:42:52 +01:00
|
|
|
CONFIG_NET_TCPURGDATA - Determines if support for TCP urgent data
|
|
|
|
notification should be compiled in. Urgent data (out-of-band data)
|
|
|
|
is a rarely used TCP feature that is very seldom would be required.
|
2007-11-22 19:36:46 +01:00
|
|
|
CONFIG_NET_TCP - TCP support on or off
|
|
|
|
CONFIG_NET_TCP_CONNS - Maximum number of TCP connections (all tasks)
|
|
|
|
CONFIG_NET_MAX_LISTENPORTS - Maximum number of listening TCP ports (all tasks)
|
|
|
|
CONFIG_NET_TCP_READAHEAD_BUFSIZE - Size of TCP read-ahead buffers
|
|
|
|
CONFIG_NET_NTCP_READAHEAD_BUFFERS - Number of TCP read-ahead buffers
|
|
|
|
(may be zero)
|
2008-11-20 20:24:06 +01:00
|
|
|
CONFIG_NET_TCPBACKLOG - Incoming connections pend in a backlog until
|
|
|
|
accept() is called. The size of the backlog is selected when listen()
|
|
|
|
is called.
|
2007-09-01 20:06:15 +02:00
|
|
|
CONFIG_NET_UDP - UDP support on or off
|
|
|
|
CONFIG_NET_UDP_CHECKSUMS - UDP checksums on or off
|
|
|
|
CONFIG_NET_UDP_CONNS - The maximum amount of concurrent UDP
|
2007-08-27 01:18:13 +02:00
|
|
|
connections
|
2008-09-02 22:42:01 +02:00
|
|
|
CONFIG_NET_ICMP - Enable minimal ICMP support. Includes built-in support
|
|
|
|
for sending replies to received ECHO (ping) requests.
|
|
|
|
CONFIG_NET_ICMP_PING - Provide interfaces to support application level
|
|
|
|
support for sending ECHO (ping) requests and associating ECHO
|
|
|
|
replies.
|
2010-07-12 18:18:44 +02:00
|
|
|
CONFIG_NET_IGMP - Enable IGMPv2 client support.
|
|
|
|
CONFIG_PREALLOC_IGMPGROUPS - Pre-allocated IGMP groups are used
|
|
|
|
only if needed from interrupt level group created (by the IGMP server).
|
|
|
|
Default: 4.
|
2007-09-01 20:06:15 +02:00
|
|
|
CONFIG_NET_PINGADDRCONF - Use "ping" packet for setting IP address
|
2007-11-22 19:36:46 +01:00
|
|
|
CONFIG_NET_STATISTICS - uIP statistics on or off
|
2007-09-01 20:06:15 +02:00
|
|
|
CONFIG_NET_RECEIVE_WINDOW - The size of the advertised receiver's
|
2007-08-27 01:18:13 +02:00
|
|
|
window
|
2007-09-01 20:06:15 +02:00
|
|
|
CONFIG_NET_ARPTAB_SIZE - The size of the ARP table
|
2011-03-12 16:36:28 +01:00
|
|
|
CONFIG_NET_ARP_IPIN - Harvest IP/MAC address mappings from the ARP table
|
|
|
|
from incoming IP packets.
|
2008-11-26 14:39:09 +01:00
|
|
|
CONFIG_NET_BROADCAST - Incoming UDP broadcast support
|
|
|
|
CONFIG_NET_MULTICAST - Outgoing multi-cast address support
|
2007-09-01 20:06:15 +02:00
|
|
|
CONFIG_NET_FWCACHE_SIZE - number of packets to remember when
|
2007-08-27 01:18:13 +02:00
|
|
|
looking for duplicates
|
|
|
|
|
2011-03-17 14:44:45 +01:00
|
|
|
SLIP Driver. SLIP supports point-to-point IP communications over a serial
|
|
|
|
port. The default data link layer for uIP is Ethernet. If CONFIG_NET_SLIP
|
|
|
|
is defined in the NuttX configuration file, then SLIP will be supported.
|
|
|
|
The basic differences between the SLIP and Ethernet configurations is that
|
|
|
|
when SLIP is selected:
|
|
|
|
|
|
|
|
* The link level header (that comes before the IP header) is omitted.
|
|
|
|
* All MAC address processing is suppressed.
|
|
|
|
* ARP is disabled.
|
|
|
|
|
|
|
|
If CONFIG_NET_SLIP is not selected, then Ethernet will be used (there is
|
|
|
|
no need to define anything special in the configuration file to use
|
|
|
|
Ethernet -- it is the default).
|
|
|
|
|
|
|
|
CONFIG_NET_SLIP -- Enables building of the SLIP driver. SLIP requires
|
|
|
|
at least one IP protocols selected and the following additional
|
|
|
|
network settings: CONFIG_NET_NOINTS and CONFIG_NET_MULTIBUFFER.
|
|
|
|
CONFIG_NET_BUFSIZE *must* be set to 296. Other optional configuration
|
|
|
|
settings that affect the SLIP driver: CONFIG_NET_STATISTICS.
|
|
|
|
Default: Ethernet
|
|
|
|
|
|
|
|
If SLIP is selected, then the following SLIP options are available:
|
|
|
|
|
|
|
|
CONFIG_CLIP_NINTERFACES -- Selects the number of physical SLIP
|
|
|
|
interfaces to support. Default: 1
|
|
|
|
CONFIG_SLIP_STACKSIZE -- Select the stack size of the SLIP RX and
|
|
|
|
TX tasks. Default: 2048
|
|
|
|
CONFIG_SLIP_DEFPRIO - The priority of the SLIP RX and TX tasks.
|
|
|
|
Default: 128
|
|
|
|
|
2007-08-27 01:18:13 +02:00
|
|
|
UIP Network Utilities
|
2007-09-01 20:06:15 +02:00
|
|
|
CONFIG_NET_DHCP_LIGHT - Reduces size of DHCP
|
|
|
|
CONFIG_NET_RESOLV_ENTRIES - Number of resolver entries
|
2007-08-27 01:18:13 +02:00
|
|
|
|
2009-07-13 03:35:15 +02:00
|
|
|
THTTPD:
|
|
|
|
CONFIG_THTTPD_PORT - THTTPD Server port number
|
|
|
|
CONFIG_THTTPD_IPADDR - Server IP address (no host name)
|
|
|
|
CONFIG_THTTPD_SERVER_ADDRESS - SERVER_ADDRESS: response
|
|
|
|
CONFIG_THTTPD_SERVER_SOFTWARE - SERVER_SOFTWARE: response
|
2009-08-15 22:25:13 +02:00
|
|
|
CONFIG_THTTPD_PATH - Server working directory
|
|
|
|
CONFIG_THTTPD_CGI_PATH - Path to CGI executables
|
2009-07-13 03:35:15 +02:00
|
|
|
CONFIG_THTTPD_CGI_PATTERN - Only CGI programs matching this
|
|
|
|
pattern will be executed. In fact, if this value is not defined
|
|
|
|
then no CGI logic will be built.
|
|
|
|
CONFIG_THTTPD_CGI_PRIORITY - Provides the priority of CGI child tasks
|
|
|
|
CONFIG_THTTPD_CGI_STACKSIZE - Provides the initial stack size of
|
|
|
|
CGI child task (will be overridden by the stack size in the NXFLAT
|
|
|
|
header)
|
|
|
|
CONFIG_THTTPD_CGI_BYTECOUNT - Byte output limit for CGI tasks.
|
|
|
|
CONFIG_THTTPD_CGI_TIMELIMIT - How many seconds to allow CGI programs
|
|
|
|
to run before killing them.
|
|
|
|
CONFIG_THTTPD_CHARSET- The default character set name to use with
|
|
|
|
text MIME types.
|
|
|
|
CONFIG_THTTPD_IOBUFFERSIZE -
|
|
|
|
CONFIG_THTTPD_INDEX_NAMES - A list of index filenames to check. The
|
|
|
|
files are searched for in this order.
|
|
|
|
CONFIG_AUTH_FILE - The file to use for authentication. If this is
|
|
|
|
defined then thttpd checks for this file in the local directory
|
|
|
|
before every fetch. If the file exists then authentication is done,
|
|
|
|
otherwise the fetch proceeds as usual. If you leave this undefined
|
|
|
|
then thttpd will not implement authentication at all and will not
|
|
|
|
check for auth files, which saves a bit of CPU time. A typical
|
|
|
|
value is ".htpasswd"
|
|
|
|
CONFIG_THTTPD_LISTEN_BACKLOG - The listen() backlog queue length.
|
|
|
|
CONFIG_THTTPD_LINGER_MSEC - How many milliseconds to leave a connection
|
|
|
|
open while doing a lingering close.
|
|
|
|
CONFIG_THTTPD_OCCASIONAL_MSEC - How often to run the occasional
|
|
|
|
cleanup job.
|
|
|
|
CONFIG_THTTPD_IDLE_READ_LIMIT_SEC - How many seconds to allow for
|
|
|
|
reading the initial request on a new connection.
|
|
|
|
CONFIG_THTTPD_IDLE_SEND_LIMIT_SEC - How many seconds before an
|
|
|
|
idle connection gets closed.
|
|
|
|
CONFIG_THTTPD_TILDE_MAP1 and CONFIG_THTTPD_TILDE_MAP2 - Tilde mapping.
|
|
|
|
Many URLs use ~username to indicate a user's home directory. thttpd
|
|
|
|
provides two options for mapping this construct to an actual filename.
|
|
|
|
1) Map ~username to <prefix>/username. This is the recommended choice.
|
2011-05-07 18:59:20 +02:00
|
|
|
Each user gets a subdirectory in the main web tree, and the tilde
|
|
|
|
construct points there. The prefix could be something like "users",
|
|
|
|
or it could be empty.
|
2009-07-13 03:35:15 +02:00
|
|
|
2) Map ~username to <user's homedir>/<postfix>. The postfix would be
|
2011-05-07 18:59:20 +02:00
|
|
|
the name of a subdirectory off of the user's actual home dir,
|
|
|
|
something like "public_html".
|
2009-07-13 03:35:15 +02:00
|
|
|
You can also leave both options undefined, and thttpd will not do
|
|
|
|
anything special about tildes. Enabling both options is an error.
|
|
|
|
Typical values, if they're defined, are "users" for
|
|
|
|
CONFIG_THTTPD_TILDE_MAP1 and "public_html"forCONFIG_THTTPD_TILDE_MAP2.
|
|
|
|
CONFIG_THTTPD_GENERATE_INDICES
|
|
|
|
CONFIG_THTTPD_URLPATTERN - If defined, then it will be used to match
|
|
|
|
and verify referrers.
|
|
|
|
|
2008-10-02 02:29:05 +02:00
|
|
|
USB device controller driver
|
|
|
|
CONFIG_USBDEV - Enables USB device support
|
|
|
|
CONFIG_USBDEV_ISOCHRONOUS - Build in extra support for isochronous
|
|
|
|
endpoints
|
|
|
|
CONFIG_USBDEV_DUALSPEED -Hardware handles high and full speed
|
|
|
|
operation (USB 2.0)
|
|
|
|
CONFIG_USBDEV_SELFPOWERED - Will cause USB features to indicate
|
|
|
|
that the device is self-powered
|
|
|
|
CONFIG_USBDEV_MAXPOWER - Maximum power consumption in mA
|
|
|
|
CONFIG_USBDEV_TRACE - Enables USB tracing for debug
|
|
|
|
CONFIG_USBDEV_TRACE_NRECORDS - Number of trace entries to remember
|
|
|
|
|
2011-05-07 18:59:20 +02:00
|
|
|
USB host controller driver
|
|
|
|
CONFIG_USBHOST
|
2011-04-06 17:04:57 +02:00
|
|
|
Enables USB host support
|
2011-05-07 18:59:20 +02:00
|
|
|
CONFIG_USBHOST_NPREALLOC
|
2011-04-06 17:04:57 +02:00
|
|
|
Number of pre-allocated class instances
|
2011-05-07 18:59:20 +02:00
|
|
|
CONFIG_USBHOST_BULK_DISABLE
|
2011-04-06 17:04:57 +02:00
|
|
|
On some architectures, selecting this setting will reduce driver size
|
|
|
|
by disabling bulk endpoint support
|
2011-05-07 18:59:20 +02:00
|
|
|
CONFIG_USBHOST_INT_DISABLE
|
2011-04-06 17:04:57 +02:00
|
|
|
On some architectures, selecting this setting will reduce driver size
|
|
|
|
by disabling interrupt endpoint support
|
2011-05-07 18:59:20 +02:00
|
|
|
CONFIG_USBHOST_ISOC_DISABLE
|
2011-04-06 17:04:57 +02:00
|
|
|
On some architectures, selecting this setting will reduce driver size
|
|
|
|
by disabling isochronous endpoint support
|
2010-12-23 03:06:23 +01:00
|
|
|
|
2011-05-07 18:59:20 +02:00
|
|
|
USB host HID class driver. Requires CONFIG_USBHOST=y,
|
|
|
|
CONFIG_USBHOST_INT_DISABLE=n, CONFIG_NFILE_DESCRIPTORS > 0,
|
|
|
|
CONFIG_SCHED_WORKQUEUE=y, and CONFIG_DISABLE_SIGNALS=n.
|
2011-01-19 21:02:23 +01:00
|
|
|
|
2011-05-07 18:59:20 +02:00
|
|
|
CONFIG_HIDKBD_POLLUSEC
|
2011-04-06 17:04:57 +02:00
|
|
|
Device poll rate in microseconds. Default: 100 milliseconds.
|
2011-05-07 18:59:20 +02:00
|
|
|
CONFIG_HIDKBD_DEFPRIO
|
2011-04-06 17:04:57 +02:00
|
|
|
Priority of the polling thread. Default: 50.
|
2011-05-07 18:59:20 +02:00
|
|
|
CONFIG_HIDKBD_STACKSIZE
|
2011-04-06 17:04:57 +02:00
|
|
|
Stack size for polling thread. Default: 1024
|
2011-05-07 18:59:20 +02:00
|
|
|
CONFIG_HIDKBD_BUFSIZE
|
2011-04-06 17:04:57 +02:00
|
|
|
Scancode buffer size. Default: 64.
|
2011-05-07 18:59:20 +02:00
|
|
|
CONFIG_HIDKBD_NPOLLWAITERS
|
2011-04-06 17:04:57 +02:00
|
|
|
If the poll() method is enabled, this defines the maximum number
|
|
|
|
of threads that can be waiting for keyboard events. Default: 2.
|
2011-05-07 18:59:20 +02:00
|
|
|
CONFIG_HIDKBD_RAWSCANCODES
|
2011-04-06 17:04:57 +02:00
|
|
|
If set to y no conversion will be made on the raw keyboard scan
|
|
|
|
codes. Default: ASCII conversion.
|
2011-05-07 18:59:20 +02:00
|
|
|
CONFIG_HIDKBD_ALLSCANCODES'
|
2011-04-06 17:04:57 +02:00
|
|
|
If set to y all 231 possible scancodes will be converted to
|
|
|
|
something. Default: 104 key US keyboard.
|
2011-05-07 18:59:20 +02:00
|
|
|
CONFIG_HIDKBD_NODEBOUNCE
|
2011-04-06 17:04:57 +02:00
|
|
|
If set to y normal debouncing is disabled. Default:
|
|
|
|
Debounce enabled (No repeat keys).
|
2011-01-19 21:02:23 +01:00
|
|
|
|
2011-05-07 18:59:20 +02:00
|
|
|
USB host mass storage class driver. Requires CONFIG_USBHOST=y,
|
|
|
|
CONFIG_USBHOST_BULK_DISABLE=n, CONFIG_NFILE_DESCRIPTORS > 0,
|
|
|
|
and CONFIG_SCHED_WORKQUEUE=y
|
2011-01-19 21:02:23 +01:00
|
|
|
|
2008-10-09 14:49:11 +02:00
|
|
|
USB serial device class driver
|
2008-10-23 22:51:26 +02:00
|
|
|
CONFIG_USBSER
|
|
|
|
Enable compilation of the USB serial driver
|
2008-10-09 14:49:11 +02:00
|
|
|
CONFIG_USBSER_EPINTIN
|
|
|
|
The logical 7-bit address of a hardware endpoint that supports
|
|
|
|
interrupt IN operation
|
|
|
|
CONFIG_USBSER_EPBULKOUT
|
|
|
|
The logical 7-bit address of a hardware endpoint that supports
|
|
|
|
bulk OUT operation
|
|
|
|
CONFIG_USBSER_EPBULKIN
|
|
|
|
The logical 7-bit address of a hardware endpoint that supports
|
|
|
|
bulk IN operation
|
|
|
|
CONFIG_USBSER_NWRREQS and CONFIG_USBSER_NRDREQS
|
|
|
|
The number of write/read requests that can be in flight
|
|
|
|
CONFIG_USBSER_VENDORID and CONFIG_USBSER_VENDORSTR
|
|
|
|
The vendor ID code/string
|
|
|
|
CONFIG_USBSER_PRODUCTID and CONFIG_USBSER_PRODUCTSTR
|
|
|
|
The product ID code/string
|
|
|
|
CONFIG_USBSER_RXBUFSIZE and CONFIG_USBSER_TXBUFSIZE
|
|
|
|
Size of the serial receive/transmit buffers
|
|
|
|
|
2008-10-23 00:03:47 +02:00
|
|
|
USB Storage Device Configuration
|
2008-10-23 22:51:26 +02:00
|
|
|
CONFIG_USBSTRG
|
|
|
|
Enable compilation of the USB storage driver
|
2008-10-23 00:03:47 +02:00
|
|
|
CONFIG_USBSTRG_EP0MAXPACKET
|
|
|
|
Max packet size for endpoint 0
|
|
|
|
CONFIG_USBSTRGEPBULKOUT and CONFIG_USBSTRG_EPBULKIN
|
|
|
|
The logical 7-bit address of a hardware endpoints that support
|
|
|
|
bulk OUT and IN operations
|
|
|
|
CONFIG_USBSTRG_NWRREQS and CONFIG_USBSTRG_NRDREQS
|
|
|
|
The number of write/read requests that can be in flight
|
|
|
|
CONFIG_USBSTRG_BULKINREQLEN and CONFIG_USBSTRG_BULKOUTREQLEN
|
|
|
|
The size of the buffer in each write/read request. This
|
|
|
|
value needs to be at least as large as the endpoint
|
|
|
|
maxpacket and ideally as large as a block device sector.
|
|
|
|
CONFIG_USBSTRG_VENDORID and CONFIG_USBSTRG_VENDORSTR
|
|
|
|
The vendor ID code/string
|
|
|
|
CONFIG_USBSTRG_PRODUCTID and CONFIG_USBSTRG_PRODUCTSTR
|
|
|
|
The product ID code/string
|
|
|
|
CONFIG_USBSTRG_REMOVABLE
|
|
|
|
Select if the media is removable
|
|
|
|
|
2008-11-28 17:07:54 +01:00
|
|
|
Graphics related configuration settings
|
|
|
|
|
2008-12-05 15:04:37 +01:00
|
|
|
CONFIG_NX
|
2008-11-28 17:07:54 +01:00
|
|
|
Enables overall support for graphics library and NX
|
|
|
|
CONFIG_NX_MULTIUSER
|
|
|
|
Configures NX in multi-user mode
|
|
|
|
CONFIG_NX_NPLANES
|
|
|
|
Some YUV color formats requires support for multiple planes,
|
|
|
|
one for each color component. Unless you have such special
|
2008-12-05 15:04:37 +01:00
|
|
|
hardware, this value should be undefined or set to 1.
|
|
|
|
CONFIG_NX_DISABLE_1BPP, CONFIG_NX_DISABLE_2BPP,
|
|
|
|
CONFIG_NX_DISABLE_4BPP, CONFIG_NX_DISABLE_8BPP,
|
|
|
|
CONFIG_NX_DISABLE_16BPP, CONFIG_NX_DISABLE_24BPP, and
|
|
|
|
CONFIG_NX_DISABLE_32BPP
|
2008-11-28 17:07:54 +01:00
|
|
|
NX supports a variety of pixel depths. You can save some
|
|
|
|
memory by disabling support for unused color depths.
|
2008-12-05 15:04:37 +01:00
|
|
|
CONFIG_NX_PACKEDMSFIRST
|
2008-11-28 17:07:54 +01:00
|
|
|
If a pixel depth of less than 8-bits is used, then NX needs
|
|
|
|
to know if the pixels pack from the MS to LS or from LS to MS
|
2010-04-17 03:53:49 +02:00
|
|
|
CONFIG_NX_LCDDRIVER
|
|
|
|
By default, NX builds to use a framebuffer driver (see
|
|
|
|
include/nuttx/fb.h). If this option is defined, NX will
|
2010-12-04 02:56:50 +01:00
|
|
|
build to use an LCD driver (see include/nuttx/lcd/lcd.h).
|
2010-04-20 04:20:42 +02:00
|
|
|
CONFIG_LCD_MAXPOWER - The full-on power setting for an LCD
|
|
|
|
device.
|
|
|
|
CONFIG_LCD_MAXCONTRAST - The maximum contrast value for an
|
|
|
|
LCD device.
|
2008-11-28 17:07:54 +01:00
|
|
|
CONFIG_NX_MOUSE
|
2008-12-05 15:04:37 +01:00
|
|
|
Build in support for mouse input.
|
2008-11-28 17:07:54 +01:00
|
|
|
CONFIG_NX_KBD
|
2008-12-05 15:04:37 +01:00
|
|
|
Build in support of keypad/keyboard input.
|
|
|
|
CONFIG_NXTK_BORDERWIDTH
|
|
|
|
Specifies with with of the border (in pixels) used with
|
|
|
|
framed windows. The default is 4.
|
|
|
|
CONFIG_NXTK_BORDERCOLOR1 and CONFIG_NXTK_BORDERCOLOR2
|
|
|
|
Specify the colors of the border used with framed windows.
|
|
|
|
CONFIG_NXTK_BORDERCOLOR2 is the shadow side color and so
|
|
|
|
is normally darker. The default is medium and dark grey,
|
|
|
|
respectively
|
|
|
|
CONFIG_NXTK_AUTORAISE
|
|
|
|
If set, a window will be raised to the top if the mouse position
|
|
|
|
is over a visible portion of the window. Default: A mouse
|
|
|
|
button must be clicked over a visible portion of the window.
|
|
|
|
CONFIG_NXFONTS_CHARBITS
|
|
|
|
The number of bits in the character set. Current options are
|
|
|
|
only 7 and 8. The default is 7.
|
|
|
|
CONFIG_NXFONT_SANS
|
|
|
|
At present, there is only one font. But if there were were more,
|
|
|
|
then this option would select the sans serif font.
|
2008-11-28 17:07:54 +01:00
|
|
|
|
|
|
|
NX Multi-user only options:
|
|
|
|
|
|
|
|
CONFIG_NX_BLOCKING
|
|
|
|
Open the client message queues in blocking mode. In this case,
|
|
|
|
nx_eventhandler() will never return.
|
|
|
|
CONFIG_NX_MXSERVERMSGS and CONFIG_NX_MXCLIENTMSGS
|
|
|
|
Specifies the maximum number of messages that can fit in
|
|
|
|
the message queues. No additional resources are allocated, but
|
|
|
|
this can be set to prevent flooding of the client or server with
|
|
|
|
too many messages (CONFIG_PREALLOC_MQ_MSGS controls how many
|
|
|
|
messages are pre-allocated).
|
|
|
|
|
2007-03-23 03:24:38 +01:00
|
|
|
Stack and heap information
|
|
|
|
|
2009-04-09 01:24:59 +02:00
|
|
|
CONFIG_BOOT_RUNFROMFLASH - Some configurations support XIP
|
|
|
|
operation from FLASH but must copy initialized .data sections to RAM.
|
|
|
|
CONFIG_BOOT_COPYTORAM - Some configurations boot in FLASH
|
|
|
|
but copy themselves entirely into RAM for better performance.
|
2007-03-23 03:24:38 +01:00
|
|
|
CONFIG_STACK_POINTER - The initial stack pointer
|
2008-11-13 22:13:53 +01:00
|
|
|
CONFIG_IDLETHREAD_STACKSIZE - The size of the initial stack.
|
|
|
|
This is the thread that (1) performs the inital boot of the system up
|
|
|
|
to the point where user_start() is spawned, and (2) there after is the
|
|
|
|
IDLE thread that executes only when there is no other thread ready to
|
|
|
|
run.
|
|
|
|
CONFIG_USERMAIN_STACKSIZE - The size of the stack to allocate
|
|
|
|
for the main user thread that begins at the user_start() entry point.
|
2007-03-23 03:24:38 +01:00
|
|
|
CONFIG_PTHREAD_STACK_MIN - Minimum pthread stack size
|
|
|
|
CONFIG_PTHREAD_STACK_DEFAULT - Default pthread stack size
|
|
|
|
CONFIG_HEAP_BASE - The beginning of the heap
|
|
|
|
CONFIG_HEAP_SIZE - The size of the heap
|
|
|
|
|
2011-03-18 18:22:50 +01:00
|
|
|
appconfig -- This is another configuration file that is specific to the
|
|
|
|
application. This file is copied into the application build directory
|
|
|
|
when NuttX is configured. See ../apps/README.txt for further details.
|
|
|
|
|
2007-03-23 03:24:38 +01:00
|
|
|
setenv.sh -- This is a script that you can include that will be installed at
|
|
|
|
the toplevel of the directory structure and can be sourced to set any
|
|
|
|
necessary environment variables.
|
|
|
|
|
|
|
|
Supported Boards
|
|
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
|
2010-10-04 17:24:20 +02:00
|
|
|
configs/avr32dev1
|
2011-05-07 18:59:20 +02:00
|
|
|
This is a port of NuttX to the Atmel AVR32DEV1 board. That board is
|
|
|
|
based on the Atmel AT32UC3B0256 MCU and uses a specially patched
|
|
|
|
version of the GNU toolchain: The patches provide support for the
|
|
|
|
AVR32 family. That patched GNU toolchain is available only from the
|
|
|
|
Atmel website. STATUS: the ostest configuration is functional, but
|
2010-11-06 18:01:13 +01:00
|
|
|
there are issues with the NSH configuration (thought to be a hardware
|
|
|
|
configuration issue, but that has not been confirmed).
|
2010-10-04 17:24:20 +02:00
|
|
|
|
2007-03-23 03:24:38 +01:00
|
|
|
configs/c5471evm
|
2011-05-07 18:59:20 +02:00
|
|
|
This is a port to the Spectrum Digital C5471 evaluation board. The
|
|
|
|
TMS320C5471 is a dual core processor from TI with an ARM7TDMI general
|
|
|
|
purpose processor and a c54 DSP. It is also known as TMS320DA180 or just DA180.
|
|
|
|
NuttX runs on the ARM core and is built with a GNU arm-elf toolchain*.
|
|
|
|
This port is complete, verified, and included in the NuttX release.
|
2007-03-23 03:24:38 +01:00
|
|
|
|
2009-12-03 00:53:41 +01:00
|
|
|
configs/demo9s12ne64
|
2011-05-07 18:59:20 +02:00
|
|
|
Feescale DMO9S12NE64 board based on the MC9S12NE64 hcs12 cpu. This
|
|
|
|
port uses the m9s12x GCC toolchain. STATUS: Under development.
|
2009-12-03 00:53:41 +01:00
|
|
|
|
2010-08-21 13:37:58 +02:00
|
|
|
configs/ea3131
|
2011-05-07 18:59:20 +02:00
|
|
|
Embedded Artists EA3131 Development bard. This board is based on the
|
|
|
|
an NXP LPC3131 MCU. This OS is built with the arm-elf toolchain*.
|
|
|
|
STATUS: This port is complete and mature.
|
2010-08-21 13:37:58 +02:00
|
|
|
|
2009-05-14 20:55:22 +02:00
|
|
|
configs/eagle100
|
2011-05-07 18:59:20 +02:00
|
|
|
Micromint Eagle-100 Development board. This board is based on the
|
|
|
|
an ARM Cortex-M3 MCU, the Luminary LM3S6918. This OS is built with the
|
|
|
|
arm-elf toolchain*. STATUS: This port is complete and mature.
|
2009-05-14 20:55:22 +02:00
|
|
|
|
2008-11-05 23:16:22 +01:00
|
|
|
configs/ez80f0910200kitg
|
2011-05-07 18:59:20 +02:00
|
|
|
ez80Acclaim! Microcontroller. This port use the Zilog ez80f0910200kitg
|
|
|
|
development kit, eZ80F091 part, and the Zilog ZDS-II Windows command line
|
|
|
|
tools. The development environment is Cygwin under WinXP.
|
2008-11-05 23:16:22 +01:00
|
|
|
|
2008-12-07 16:46:06 +01:00
|
|
|
configs/ez80f0910200zco
|
2011-05-07 18:59:20 +02:00
|
|
|
ez80Acclaim! Microcontroller. This port use the Zilog ez80f0910200zco
|
|
|
|
development kit, eZ80F091 part, and the Zilog ZDS-II Windows command line
|
|
|
|
tools. The development environment is Cygwin under WinXP.
|
2008-12-07 16:46:06 +01:00
|
|
|
|
2010-05-07 06:20:12 +02:00
|
|
|
configs/lm3s6965-ek
|
2011-05-07 18:59:20 +02:00
|
|
|
Stellaris LM3S6965 Evaluation Kit. This board is based on the
|
|
|
|
an ARM Cortex-M3 MCU, the Luminary/TI LM3S6965. This OS is built with the
|
|
|
|
arm-elf toolchain*. STATUS: This port is complete and mature.
|
2010-05-07 06:20:12 +02:00
|
|
|
|
2011-04-10 20:44:31 +02:00
|
|
|
configs/lpcxpresso-lpc1768
|
2011-05-07 18:59:20 +02:00
|
|
|
Embedded Artists base board with NXP LPCExpresso LPC1768. This board
|
|
|
|
is based on the NXP LPC1768. The Code Red toolchain is used by default.
|
|
|
|
STATUS: Under development.
|
2011-04-10 20:44:31 +02:00
|
|
|
|
2008-11-05 23:16:22 +01:00
|
|
|
configs/m68322evb
|
2011-05-07 18:59:20 +02:00
|
|
|
This is a work in progress for the venerable m68322evb board from
|
|
|
|
Motorola. This OS is also built with the arm-elf toolchain*. STATUS:
|
2010-11-06 18:01:13 +01:00
|
|
|
This port was never completed.
|
2008-11-05 23:16:22 +01:00
|
|
|
|
2010-09-10 03:19:15 +02:00
|
|
|
configs/mbed
|
2011-05-07 18:59:20 +02:00
|
|
|
The configurations in this directory support the mbed board (http://mbed.org)
|
|
|
|
that features the NXP LPC1768 microcontroller. This OS is also built
|
|
|
|
with the arm-elf toolchain*. STATUS: Contributed.
|
2010-09-10 03:19:15 +02:00
|
|
|
|
2007-04-25 02:09:44 +02:00
|
|
|
configs/mcu123-lpc214x
|
2011-05-07 18:59:20 +02:00
|
|
|
This port is for the NXP LPC2148 as provided on the mcu123.com
|
|
|
|
lpc214x development board. This OS is also built with the arm-elf
|
|
|
|
toolchain*. The port supports serial, timer0, spi, and usb.
|
2007-04-25 02:09:44 +02:00
|
|
|
|
2009-05-14 20:55:22 +02:00
|
|
|
configs/mx1ads
|
2011-05-07 18:59:20 +02:00
|
|
|
This is a port to the Motorola MX1ADS development board. That board
|
|
|
|
is based on the Freescale i.MX1 processor. The i.MX1 is an ARM920T.
|
|
|
|
STATUS: This port is nearly code complete but still under development
|
|
|
|
(work is stalled until I devote time to the Micromint Eagle-100)
|
2009-05-14 20:55:22 +02:00
|
|
|
|
2011-02-25 19:46:06 +01:00
|
|
|
configs/ne64badge
|
2011-05-07 18:59:20 +02:00
|
|
|
Future Electronics Group NE64 /PoE Badge board based on the
|
|
|
|
MC9S12NE64 hcs12 cpu. This port uses the m9s12x GCC toolchain.
|
|
|
|
STATUS: Under development.
|
2011-02-25 19:46:06 +01:00
|
|
|
|
2007-03-23 03:24:38 +01:00
|
|
|
configs/ntosd-dm320
|
2011-05-07 18:59:20 +02:00
|
|
|
This port uses the Neuros OSD v1.0 Dev Board with a GNU arm-elf
|
|
|
|
toolchain*: see
|
|
|
|
|
|
|
|
http://wiki.neurostechnology.com/index.php/OSD_1.0_Developer_Home
|
2010-08-21 13:37:58 +02:00
|
|
|
|
2011-05-07 18:59:20 +02:00
|
|
|
There are some differences between the Dev Board and the currently
|
|
|
|
available commercial v1.0 Boards. See
|
|
|
|
|
|
|
|
http://wiki.neurostechnology.com/index.php/OSD_Developer_Board_v1
|
2010-08-21 13:37:58 +02:00
|
|
|
|
2011-05-07 18:59:20 +02:00
|
|
|
NuttX operates on the ARM9EJS of this dual core processor.
|
|
|
|
STATUS: This port is code complete, verified, and included in the
|
|
|
|
NuttX 0.2.1 release.
|
2007-03-23 03:24:38 +01:00
|
|
|
|
2010-06-05 22:04:21 +02:00
|
|
|
configs/nucleus2g
|
2011-05-07 18:59:20 +02:00
|
|
|
This port uses the Nucleus 2G board (with Babel CAN board). This board
|
|
|
|
features an NXP LPC1768 processor. See the 2G website (http://www.2g-eng.com/)
|
|
|
|
for more information about the Nucleus 2G.
|
2010-06-05 22:04:21 +02:00
|
|
|
|
2010-11-06 18:01:13 +01:00
|
|
|
configs/olimex-lpc1766stk
|
2011-05-07 18:59:20 +02:00
|
|
|
This port uses the Olimex LPC1766-STK board and a GNU GCC toolchain* under
|
|
|
|
Linux or Cygwin. STATUS: under development.
|
2010-11-06 18:01:13 +01:00
|
|
|
|
2010-05-07 06:20:12 +02:00
|
|
|
configs/olimex-lpc2378
|
2011-05-07 18:59:20 +02:00
|
|
|
This port uses the Olimex-lpc2378 board and a GNU arm-elf toolchain* under
|
|
|
|
Linux or Cygwin. STATUS: ostest and NSH configurations available.
|
2010-05-07 06:20:12 +02:00
|
|
|
|
2010-08-21 13:37:58 +02:00
|
|
|
configs/olimex-lpc2378
|
2011-05-07 18:59:20 +02:00
|
|
|
This port for the NXP LPC2378 was contributed by Rommel Marcelo.
|
2010-08-21 13:37:58 +02:00
|
|
|
|
2008-11-05 23:16:22 +01:00
|
|
|
configs/olimex-strp711
|
2011-05-07 18:59:20 +02:00
|
|
|
This port uses the Olimex STR-P711 board and a GNU arm-elf toolchain* under
|
2010-11-06 18:01:13 +01:00
|
|
|
Linux or Cygwin. See the http://www.olimex.com/dev/str-p711.html" for
|
|
|
|
further information. STATUS: Coding for the basic port -- serial console
|
|
|
|
and system timer -- is complete but untested to problems I am having using
|
|
|
|
OpenOCD with a wiggler clone JTAG.
|
2007-03-23 03:24:38 +01:00
|
|
|
|
|
|
|
configs/pjrc-8051
|
2011-05-07 18:59:20 +02:00
|
|
|
8051 Microcontroller. This port uses the PJRC 87C52 development system
|
|
|
|
and the SDCC toolchain. This port is not quite ready for prime time.
|
2007-03-23 03:24:38 +01:00
|
|
|
|
2011-05-12 19:42:01 +02:00
|
|
|
configs/rgmp
|
|
|
|
|
|
|
|
RGMP stands for RTOS and GPOS on Multi-Processor. RGMP is a project for
|
|
|
|
running GPOS and RTOS simultaneously on multi-processor platforms. You can
|
|
|
|
port your favorite RTOS to RGMP together with an unmodified Linux to form a
|
|
|
|
hybrid operating system. This makes your application able to use both RTOS
|
|
|
|
and GPOS feathures.
|
|
|
|
|
|
|
|
See http://rgmp.sourceforge.net/wiki/index.php/Main_Page for further
|
|
|
|
|
|
|
|
information about RGMP.
|
2008-11-05 23:16:22 +01:00
|
|
|
configs/sim
|
2011-05-07 18:59:20 +02:00
|
|
|
A user-mode port of NuttX to the x86 Linux platform is available.
|
|
|
|
The purpose of this port is primarily to support OS feature development.
|
|
|
|
This port does not support interrupts or a real timer (and hence no
|
|
|
|
round robin scheduler) Otherwise, it is complete.
|
2008-11-05 23:16:22 +01:00
|
|
|
|
2011-05-07 18:59:20 +02:00
|
|
|
NOTE: This target will not run on Cygwin probably for many reasons but
|
|
|
|
first off because it uses some of the same symbols as does cygwin.dll.
|
2008-11-05 23:16:22 +01:00
|
|
|
|
2009-02-07 16:24:32 +01:00
|
|
|
configs/skp16c26
|
2011-05-07 18:59:20 +02:00
|
|
|
Renesas M16C processor on the Renesas SKP16C26 StarterKit. This port
|
|
|
|
uses the GNU m32c toolchain.
|
2009-02-07 16:24:32 +01:00
|
|
|
|
2009-09-23 21:21:00 +02:00
|
|
|
configs/stm3210e-evel
|
2011-05-07 18:59:20 +02:00
|
|
|
STMicro STM3210E-EVAL development board based on the STMicro STM32F103ZET6
|
|
|
|
microcontroller (ARM Cortex-M3). This port uses the GNU Cortex-M3
|
|
|
|
toolchain.
|
2009-09-23 21:21:00 +02:00
|
|
|
|
2008-11-05 23:16:22 +01:00
|
|
|
configs/us7032evb1
|
2011-05-07 18:59:20 +02:00
|
|
|
This is a port of the Hitachi SH-1 on the Hitachi SH-1/US7032EVB1 board.
|
|
|
|
STATUS: Work has just began on this port.
|
2008-11-05 23:16:22 +01:00
|
|
|
|
2011-02-27 16:42:07 +01:00
|
|
|
configs/vsn
|
2011-05-07 18:59:20 +02:00
|
|
|
ISOTEL NetClamps VSN V1.2 ready2go sensor network platform based on the
|
2011-02-27 16:42:07 +01:00
|
|
|
STMicro STM32F103RET6. Contributed by Uros Platise.
|
|
|
|
|
2008-02-15 23:14:00 +01:00
|
|
|
configs/xtrs
|
2011-05-07 18:59:20 +02:00
|
|
|
TRS80 Model 3. This port uses a vintage computer based on the Z80.
|
|
|
|
An emulator for this computer is available to run TRS80 programs on a
|
|
|
|
linux platform (http://www.tim-mann.org/xtrs.html).
|
2008-02-15 23:14:00 +01:00
|
|
|
|
2008-01-08 00:13:12 +01:00
|
|
|
configs/z16f2800100zcog
|
2011-05-07 18:59:20 +02:00
|
|
|
z16f Microcontroller. This port use the Zilog z16f2800100zcog
|
|
|
|
development kit and the Zilog ZDS-II Windows command line tools. The
|
|
|
|
development environment is Cygwin under WinXP.
|
2008-01-08 00:13:12 +01:00
|
|
|
|
2008-11-05 23:16:22 +01:00
|
|
|
configs/z80sim
|
2011-05-07 18:59:20 +02:00
|
|
|
z80 Microcontroller. This port uses a Z80 instruction set simulator.
|
|
|
|
That simulator can be found in the NuttX SVN at
|
|
|
|
http://nuttx.svn.sourceforge.net/viewvc/nuttx/trunk/misc/sims/z80sim.
|
|
|
|
This port also uses the SDCC toolchain (http://sdcc.sourceforge.net/")
|
|
|
|
(verified with version 2.6.0).
|
2008-11-05 23:16:22 +01:00
|
|
|
|
2008-02-11 18:11:20 +01:00
|
|
|
configs/z8encore000zco
|
2011-05-07 18:59:20 +02:00
|
|
|
z8Encore! Microcontroller. This port use the Zilog z8encore000zco
|
|
|
|
development kit, Z8F6403 part, and the Zilog ZDS-II Windows command line
|
|
|
|
tools. The development environment is Cygwin under WinXP.
|
2008-02-11 18:11:20 +01:00
|
|
|
|
2008-03-11 00:37:56 +01:00
|
|
|
configs/z8f64200100kit
|
2011-05-07 18:59:20 +02:00
|
|
|
z8Encore! Microcontroller. This port use the Zilog z8f64200100kit
|
|
|
|
development kit, Z8F6423 part, and the Zilog ZDS-II Windows command line
|
|
|
|
tools. The development environment is Cygwin under WinXP.
|
2008-03-11 00:37:56 +01:00
|
|
|
|
2007-03-23 03:24:38 +01:00
|
|
|
Other ports for the for the TI TMS320DM270, M683222 and for MIPS are in various
|
|
|
|
states of progress
|
|
|
|
|
|
|
|
Configuring NuttX
|
|
|
|
^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Configuring NuttX requires only copying
|
|
|
|
|
2008-02-07 15:41:11 +01:00
|
|
|
configs/<board-name>/<config-dir>/Make.def to ${TOPDIR}/Make.defs
|
|
|
|
configs/<board-name>/<config-dir>/setenv.sh to ${TOPDIR}/setenv.sh
|
|
|
|
configs/<board-name>/<config-dir>/defconfig to ${TOPDIR}/.config
|
2007-03-23 03:24:38 +01:00
|
|
|
|
2011-03-18 18:22:50 +01:00
|
|
|
And if configs/<board-name>/<config-dir>/appconfig exists in the board
|
|
|
|
configuration directory:
|
|
|
|
|
|
|
|
Copy configs/<board-name>/<config-dir>/appconfig to <app-dir>/.config
|
|
|
|
echo "APPS_LOC=\"<app-dir>\"" >> "${TOPDIR}/.config"
|
|
|
|
|
2008-02-07 15:41:11 +01:00
|
|
|
tools/configure.sh
|
|
|
|
There is a script that automates these steps. The following steps will
|
|
|
|
accomplish the same configuration:
|
2007-03-23 03:24:38 +01:00
|
|
|
|
|
|
|
cd tools
|
2008-02-07 15:41:11 +01:00
|
|
|
./configure.sh <board-name>/<config-dir>
|
2011-03-18 18:22:50 +01:00
|
|
|
|
|
|
|
And if configs/<board-name>/<config-dir>/appconfig exists and your
|
|
|
|
application directory is not in the standard loction (../apps), then
|
|
|
|
you should also specify the location of the application directory on the
|
|
|
|
command line like:
|
|
|
|
|
|
|
|
cd tools
|
|
|
|
./configure.sh -a <app-dir> <board-name>/<config-dir>
|