summaryrefslogtreecommitdiffstats
path: root/nuttx/configs/stm3240g-eval/nxwm
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-05-14 21:57:38 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-05-14 21:57:38 +0000
commit443b010ba42ad02107b04c33ccb77da56b5e82ff (patch)
treeaed7b7c4f84c4b2016b606b390e818023d2c3841 /nuttx/configs/stm3240g-eval/nxwm
parentde973b7ed012f06aa934407840bedb921ecf3dec (diff)
Improved thresholding logic in the STMPE11 driver; NxWM: Oops minimizing wrong application
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4737 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/configs/stm3240g-eval/nxwm')
-rw-r--r--nuttx/configs/stm3240g-eval/nxwm/defconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/nuttx/configs/stm3240g-eval/nxwm/defconfig b/nuttx/configs/stm3240g-eval/nxwm/defconfig
index 3242948f30..ca7b242ce0 100644
--- a/nuttx/configs/stm3240g-eval/nxwm/defconfig
+++ b/nuttx/configs/stm3240g-eval/nxwm/defconfig
@@ -990,6 +990,13 @@ CONFIG_INPUT_TSC2007=n
# Disable driver temperature sensor functionality.
# CONFIG_STMPE11_REGDBUG
# Enabled very low register-level debug output. Requires CONFIG_DEBUG.
+# CONFIG_STMPE11_THRESHX and CONFIG_STMPE11_THRESHY
+# STMPE11 touchscreen data comes in a a very high rate. New touch positions
+# will only be reported when the X or Y data changes by these thresholds.
+# This trades reduces data rate for some loss in dragging accuracy. The
+# STMPE11 is configure for 12-bit values so the raw ranges are 0-4095. So
+# for example, if your display is 320x240, then THRESHX=13 and THRESHY=17
+# would correspond to one pixel. Default: 12
#
CONFIG_INPUT_STMPE11=n
CONFIG_STMPE11_SPI=n
@@ -1005,6 +1012,8 @@ CONFIG_STMPE11_GPIOINT_DISABLE=y
CONFIG_STMPE11_SWAPXY=n
CONFIG_STMPE11_TEMP_DISABLE=y
CONFIG_STMPE11_REGDEBUG=n
+CONFIG_STMPE11_THRESHX=26
+CONFIG_STMPE11_THRESHY=34
#
# USB Device Configuration