summaryrefslogtreecommitdiff
path: root/apps/examples
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-08 22:10:29 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-08 22:10:29 +0000
commit0f72f7085182b9038e0037c3b949458ac3306fdc (patch)
tree16b4ca73d161b169be423dfe7089798041f3338f /apps/examples
parentb6f9680b714b4579dcbe0e4bc71c6fa4724bf899 (diff)
downloadpx4-nuttx-0f72f7085182b9038e0037c3b949458ac3306fdc.tar.gz
px4-nuttx-0f72f7085182b9038e0037c3b949458ac3306fdc.tar.bz2
px4-nuttx-0f72f7085182b9038e0037c3b949458ac3306fdc.zip
The STMPE11/touchscreen is now fully functional on the STM3240G-EVAL
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4715 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples')
-rw-r--r--apps/examples/touchscreen/tc_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/examples/touchscreen/tc_main.c b/apps/examples/touchscreen/tc_main.c
index 6db6af992..162025c79 100644
--- a/apps/examples/touchscreen/tc_main.c
+++ b/apps/examples/touchscreen/tc_main.c
@@ -122,7 +122,7 @@ int MAIN_NAME(int argc, char *argv[])
* external to this test.
*/
- message(MAIN_STRING "Initializing external touschscreen device\n");
+ message(MAIN_STRING "Initializing external touchscreen device\n");
ret = arch_tcinitialize(CONFIG_EXAMPLES_TOUCHSCREEN_MINOR);
if (ret != OK)
{
@@ -133,6 +133,7 @@ int MAIN_NAME(int argc, char *argv[])
/* Open the touchscreen device for reading */
+ message(MAIN_STRING "Opening %s\n", CONFIG_EXAMPLES_TOUCHSCREEN_DEVPATH);
fd = open(CONFIG_EXAMPLES_TOUCHSCREEN_DEVPATH, O_RDONLY);
if (fd < 0)
{
@@ -162,6 +163,7 @@ int MAIN_NAME(int argc, char *argv[])
/* Read one sample */
+ ivdbg("Reading...\n");
nbytes = read(fd, &sample, sizeof(struct touch_sample_s));
ivdbg("Bytes read: %d\n", nbytes);