summaryrefslogtreecommitdiff
path: root/apps/examples/README.txt
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-19 23:06:41 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-19 23:06:41 +0000
commit5fb7939d769fb3f1f84721cb0056d0cc621f05e2 (patch)
treeeadad8142fada4d8cb57c09e438d6535bbd65d53 /apps/examples/README.txt
parentef92b45bc404a1aaf0ab43a1603712f9bfc72311 (diff)
downloadnuttx-5fb7939d769fb3f1f84721cb0056d0cc621f05e2.tar.gz
nuttx-5fb7939d769fb3f1f84721cb0056d0cc621f05e2.tar.bz2
nuttx-5fb7939d769fb3f1f84721cb0056d0cc621f05e2.zip
Add a test for PWM drivers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4202 42af7a65-404d-4744-a932-0658087f49c3
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
^^^^^^^^^^^^^