diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2011-12-22 15:59:50 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2011-12-22 15:59:50 +0000 |
commit | bfc578860cab6fec7fa85d685f9539d2e1a237de (patch) | |
tree | 63468d1d6ac45b29fbd91bfc9b9e1d7d6d7b17c0 /apps/examples/README.txt | |
parent | 907471d5dce6d4d995ed35f0be14ba73795fd4cf (diff) | |
download | px4-firmware-bfc578860cab6fec7fa85d685f9539d2e1a237de.tar.gz px4-firmware-bfc578860cab6fec7fa85d685f9539d2e1a237de.tar.bz2 px4-firmware-bfc578860cab6fec7fa85d685f9539d2e1a237de.zip |
Add loopback support to STM32 CAN driver; Add apps/examples/can loopback test
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4213 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'apps/examples/README.txt')
-rw-r--r-- | apps/examples/README.txt | 28 |
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 ^^^^^^^^^^^^^^ |