aboutsummaryrefslogtreecommitdiff
path: root/apps/examples/README.txt
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2011-12-19 23:06:41 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2011-12-19 23:06:41 +0000
commitb7edb56d6f88d7d853d49f668723a6fad248692d (patch)
treeeadad8142fada4d8cb57c09e438d6535bbd65d53 /apps/examples/README.txt
parentc0424dae9918a2258a2b368d177066290dbde71c (diff)
downloadpx4-firmware-b7edb56d6f88d7d853d49f668723a6fad248692d.tar.gz
px4-firmware-b7edb56d6f88d7d853d49f668723a6fad248692d.tar.bz2
px4-firmware-b7edb56d6f88d7d853d49f668723a6fad248692d.zip
Add a test for PWM drivers
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4202 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'apps/examples/README.txt')
-rw-r--r--apps/examples/README.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/examples/README.txt b/apps/examples/README.txt
index 4460e2c66..ff8dcead1 100644
--- a/apps/examples/README.txt
+++ b/apps/examples/README.txt
@@ -678,6 +678,22 @@ examples/poll
CONFIGURED_APPS += uiplib
+examples/pwm
+^^^^^^^^^^^^
+
+ A test of a PWM device driver. It simply enables a pulsed output for
+ a specified frequency and duty for a specified period of time. This
+ example can ONLY be built as an NSH built-in function.
+
+ CONFIG_NSH_BUILTIN_APPS - Build the PWM test as an NSH built-in function.
+ Default: Not built! The example can only be used as an NSH built-in
+ application
+ CONFIG_EXAMPLES_PWM_DEVPATH - The path to the PWM device. Default: /dev/pwm0
+ CONFIG_EXAMPLES_PWM_FREQUENCY - The initial PWM frequency. Default: 100 Hz
+ CONFIG_EXAMPLES_PWM_DUTYPCT - The initial PWM duty as a percentage. Default: 50%
+ CONFIG_EXAMPLES_PWM_DURATION - The initial PWM pulse train duration in sectonds.
+ as a percentage. Default: 5 seconds
+
examples/rgmp
^^^^^^^^^^^^^