mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Improved thresholding logic in the STMPE11 driver; NxWM: Oops minimizing wrong application
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4737 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -814,6 +814,13 @@ defconfig -- This is a configuration file similar to the Linux
|
|||||||
Disable driver temperature sensor functionality.
|
Disable driver temperature sensor functionality.
|
||||||
CONFIG_STMPE11_REGDEBUG
|
CONFIG_STMPE11_REGDEBUG
|
||||||
Enabled very low register-level debug output. Requires CONFIG_DEBUG.
|
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
|
||||||
|
|
||||||
Analog Devices
|
Analog Devices
|
||||||
|
|
||||||
|
|||||||
@@ -990,6 +990,13 @@ CONFIG_INPUT_TSC2007=n
|
|||||||
# Disable driver temperature sensor functionality.
|
# Disable driver temperature sensor functionality.
|
||||||
# CONFIG_STMPE11_REGDBUG
|
# CONFIG_STMPE11_REGDBUG
|
||||||
# Enabled very low register-level debug output. Requires CONFIG_DEBUG.
|
# 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_INPUT_STMPE11=n
|
||||||
CONFIG_STMPE11_SPI=n
|
CONFIG_STMPE11_SPI=n
|
||||||
@@ -1005,7 +1012,8 @@ CONFIG_STMPE11_GPIOINT_DISABLE=y
|
|||||||
CONFIG_STMPE11_SWAPXY=y
|
CONFIG_STMPE11_SWAPXY=y
|
||||||
CONFIG_STMPE11_TEMP_DISABLE=y
|
CONFIG_STMPE11_TEMP_DISABLE=y
|
||||||
CONFIG_STMPE11_REGDEBUG=n
|
CONFIG_STMPE11_REGDEBUG=n
|
||||||
|
CONFIG_STMPE11_THRESHX=26
|
||||||
|
CONFIG_STMPE11_THRESHY=34
|
||||||
#
|
#
|
||||||
# USB Device Configuration
|
# USB Device Configuration
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -990,6 +990,13 @@ CONFIG_INPUT_TSC2007=n
|
|||||||
# Disable driver temperature sensor functionality.
|
# Disable driver temperature sensor functionality.
|
||||||
# CONFIG_STMPE11_REGDBUG
|
# CONFIG_STMPE11_REGDBUG
|
||||||
# Enabled very low register-level debug output. Requires CONFIG_DEBUG.
|
# 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_INPUT_STMPE11=n
|
||||||
CONFIG_STMPE11_SPI=n
|
CONFIG_STMPE11_SPI=n
|
||||||
@@ -1005,6 +1012,8 @@ CONFIG_STMPE11_GPIOINT_DISABLE=y
|
|||||||
CONFIG_STMPE11_SWAPXY=n
|
CONFIG_STMPE11_SWAPXY=n
|
||||||
CONFIG_STMPE11_TEMP_DISABLE=y
|
CONFIG_STMPE11_TEMP_DISABLE=y
|
||||||
CONFIG_STMPE11_REGDEBUG=n
|
CONFIG_STMPE11_REGDEBUG=n
|
||||||
|
CONFIG_STMPE11_THRESHX=26
|
||||||
|
CONFIG_STMPE11_THRESHY=34
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB Device Configuration
|
# USB Device Configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user