Skip to content
Snippets Groups Projects
Commit 755bf3fd authored by patacongo's avatar patacongo
Browse files

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
parent 179b1249
No related branches found
No related tags found
No related merge requests found
...@@ -122,7 +122,7 @@ int MAIN_NAME(int argc, char *argv[]) ...@@ -122,7 +122,7 @@ int MAIN_NAME(int argc, char *argv[])
* external to this test. * 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); ret = arch_tcinitialize(CONFIG_EXAMPLES_TOUCHSCREEN_MINOR);
if (ret != OK) if (ret != OK)
{ {
...@@ -133,6 +133,7 @@ int MAIN_NAME(int argc, char *argv[]) ...@@ -133,6 +133,7 @@ int MAIN_NAME(int argc, char *argv[])
/* Open the touchscreen device for reading */ /* Open the touchscreen device for reading */
message(MAIN_STRING "Opening %s\n", CONFIG_EXAMPLES_TOUCHSCREEN_DEVPATH);
fd = open(CONFIG_EXAMPLES_TOUCHSCREEN_DEVPATH, O_RDONLY); fd = open(CONFIG_EXAMPLES_TOUCHSCREEN_DEVPATH, O_RDONLY);
if (fd < 0) if (fd < 0)
{ {
...@@ -162,6 +163,7 @@ int MAIN_NAME(int argc, char *argv[]) ...@@ -162,6 +163,7 @@ int MAIN_NAME(int argc, char *argv[])
/* Read one sample */ /* Read one sample */
ivdbg("Reading...\n");
nbytes = read(fd, &sample, sizeof(struct touch_sample_s)); nbytes = read(fd, &sample, sizeof(struct touch_sample_s));
ivdbg("Bytes read: %d\n", nbytes); ivdbg("Bytes read: %d\n", nbytes);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment