summaryrefslogtreecommitdiff
path: root/apps/examples/README.txt
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-09-29 16:25:21 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-09-29 16:25:21 +0000
commit46befd16063c1f5ac68344cf5419a33a56d3a1ab (patch)
treede01ea633b4e957d8747055b849ac4b386566c35 /apps/examples/README.txt
parent23ddf8e48b573f08c96d1bcde85f2e3f029b806d (diff)
downloadpx4-nuttx-46befd16063c1f5ac68344cf5419a33a56d3a1ab.tar.gz
px4-nuttx-46befd16063c1f5ac68344cf5419a33a56d3a1ab.tar.bz2
px4-nuttx-46befd16063c1f5ac68344cf5419a33a56d3a1ab.zip
Add a simple touchscreen test
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3995 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/README.txt')
-rw-r--r--apps/examples/README.txt37
1 files changed, 36 insertions, 1 deletions
diff --git a/apps/examples/README.txt b/apps/examples/README.txt
index ca58fbb27..fbd770309 100644
--- a/apps/examples/README.txt
+++ b/apps/examples/README.txt
@@ -758,11 +758,46 @@ examples/tiff
will be used in the file creation. Defaults are "/tmp/tmpfile1.dat" and
"/tmp/tmpfile2.dat"
- The following must also be defined in your appconfig file:
+ The following must also be defined in your apps/ configuration file:
CONFIGURED_APPS += examples/tiff
CONFIGURED_APPS += graphics/tiff
+examples/touchscreen
+^^^^^^^^^^^^^^^^^^^^
+
+ This configuration implements a simple touchscreen test at
+ apps/examples/touchscreen. This test will create an empty X11 window
+ and will print the touchscreen output as it is received from the
+ simulated touchscreen driver.
+
+ CONFIG_EXAMPLES_TOUCHSCREEN_BUILTIN - Build the touchscreen test as
+ an NSH built-in function. Default: Built as a standalone problem
+ CONFIG_EXAMPLES_TOUCHSCREEN_MINOR - The minor device number. Minor=N
+ correspnds to touchscreen device /dev/input0. Note this value must
+ with CONFIG_EXAMPLES_TOUCHSCREEN_DEVPATH. Default 0.
+ CONFIG_EXAMPLES_TOUCHSCREEN_DEVPATH - The path to the touchscreen
+ device. This must be consistent with CONFIG_EXAMPLES_TOUCHSCREEN_MINOR.
+ Default: "/dev/input0"
+
+ The following additional configurations must be set in the NuttX
+ configuration file:
+
+ CONFIG_INPUTP=y
+ (Plus any touchscreen-specific settings).
+
+ The following must also be defined in your apps configuration file:
+
+ CONFIGURED_APPS += examples/tiff
+ CONFIGURED_APPS += graphics/tiff
+
+ The board-specific logic must provide the following interfaces that will
+ be called by the example in order to initialize and uninitialize the
+ touchscreen hardware:
+
+ int arch_tcinitialize(int minor);
+ int arch_tcuninitialize(void);
+
examples/udp
^^^^^^^^^^^^