summaryrefslogtreecommitdiff
path: root/apps/examples/README.txt
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-22 15:59:50 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-22 15:59:50 +0000
commit5b038d28629472894c07f4efc604c992c9d8264d (patch)
tree63468d1d6ac45b29fbd91bfc9b9e1d7d6d7b17c0 /apps/examples/README.txt
parent0404da840332858afad5ecbfcba1290c191f0078 (diff)
downloadnuttx-5b038d28629472894c07f4efc604c992c9d8264d.tar.gz
nuttx-5b038d28629472894c07f4efc604c992c9d8264d.tar.bz2
nuttx-5b038d28629472894c07f4efc604c992c9d8264d.zip
Add loopback support to STM32 CAN driver; Add apps/examples/can loopback test
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4213 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/README.txt')
-rw-r--r--apps/examples/README.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/apps/examples/README.txt b/apps/examples/README.txt
index ff8dcead1..97a3cf151 100644
--- a/apps/examples/README.txt
+++ b/apps/examples/README.txt
@@ -76,6 +76,34 @@ examples/buttons
user-space program. As a result, this example cannot be used if a
NuttX is built as a protected, supervisor kernel (CONFIG_NUTTX_KERNEL).
+examples/can
+^^^^^^^^^^^^
+
+ If the CAN device is configured in loopback mode, then this example can
+ be used to test the CAN device in loop back mode. It simple sinces a
+ sequence of CAN messages and verifies that those messages are returned
+ exactly as sent.
+
+ This test depends on these specific CAN configurations settings (your
+ specific CAN settings might require additional settings).
+
+ CONFIG_CAN - Enables CAN support.
+ CONFIG_CAN_LOOPBACK - A CAN driver may or may not support a loopback
+ mode for testing. The STM32 CAN driver does support loopback mode.
+
+ Specific configuration options for this example include:
+
+ CONFIG_NSH_BUILTIN_APPS - Build the CAN test as an NSH built-in function.
+ Default: Built as a standalone problem
+ CONFIG_CAN_LOOPBACK
+ CONFIG_EXAMPLES_CAN_DEVPATH - The path to the CAN device. Default: /dev/can0
+ CONFIG_EXAMPLES_CAN_NMSGS - If CONFIG_NSH_BUILTIN_APPS
+ is defined, then the number of loops is provided on the command line
+ and this value is ignored. Otherwise, this number of CAN message is
+ collected and the program terminates. Default: If built as an NSH
+ built-in, the default is 32. Otherwise messages are sent and received
+ indefinitely.
+
examples/dhcpd
^^^^^^^^^^^^^^