From d7b62e97ab8ba217aca708f643354bbaa98da3cf Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 28 Sep 2011 23:39:57 +0000 Subject: [PATCH] Simulated touchscreen debug fixes git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3994 42af7a65-404d-4744-a932-0658087f49c3 --- configs/sim/README.txt | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/configs/sim/README.txt b/configs/sim/README.txt index 3a9348d1ce..592fb3a471 100644 --- a/configs/sim/README.txt +++ b/configs/sim/README.txt @@ -267,16 +267,23 @@ nx11 CONFIG_SIM_TOUCHSCREEN=y Then you must also have some application logic that will call - up_simtouchscreen(0) to register the touchscreen driver. + sim_tcinitializ(0) to register the touchscreen driver. NOTES: - 1. If you do not have this call, the build will mysteriously - fail claiming that is can't find up_tcenter(0 and up_tcleave(). - That is a consequence of the crazy way that the simulation is - built and can only be eliminated by call up_simtouchscreen(0) - from your application. - 2. You must first call + 1. If you do not have the call to sim_tcinitializE(0), the build + will mysteriously fail claiming that is can't find up_tcenter() + and up_tcleave(). That is a consequence of the crazy way that + the simulation is built and can only be eliminated by calling + up_simtouchscreen(0) from your application. + + 2. You must first up_fbinitialize() before calling up_simtouchscreen() + or you will get a crash. + + 3. Call sim_tcuninintialize() when you are finished with the + simulated touchscreen. + + 4. Enable CONFIG_DEBUG_INPUT=y for touchscreen debug output. X11 Build Issues ----------------