mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 05:43:34 +08:00
The STMPE11/touchscreen is now fully functional on the STM3240G-EVAL
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4715 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user