aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811_board_template.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-11-07 12:05:23 +1000
committerinmarket <andrewh@inmarket.com.au>2014-11-07 12:05:23 +1000
commit2a1c7785ccd0cb0b4675c06c2c48e270e7d926e4 (patch)
treedb076068f876343bcc409fb7df26ec526bb3e88f /drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811_board_template.h
parentd0f8c12a2d79d6328269a7931fdf673bd23f4dc7 (diff)
downloaduGFX-2a1c7785ccd0cb0b4675c06c2c48e270e7d926e4.tar.gz
uGFX-2a1c7785ccd0cb0b4675c06c2c48e270e7d926e4.tar.bz2
uGFX-2a1c7785ccd0cb0b4675c06c2c48e270e7d926e4.zip
Fix the newmouse STMPE811 driver.
Finalise the STM32F429i-Discovery board file for that touch controller
Diffstat (limited to 'drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811_board_template.h')
-rw-r--r--drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811_board_template.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811_board_template.h b/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811_board_template.h
index 437abc09..4520cf67 100644
--- a/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811_board_template.h
+++ b/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811_board_template.h
@@ -19,13 +19,15 @@
// How much extra data to allocate at the end of the GMouse structure for the board's use
#define GMOUSE_STMPE811_BOARD_DATA_SIZE 0
-// Set this to TRUE if you want self-calibration.
-// NOTE: This is not as accurate as real calibration.
-// It requires the orientation of the touch panel to match the display.
-// It requires the active area of the touch panel to exactly match the display size.
-#define GMOUSE_STMPE811_SELF_CALIBRATE FALSE
+// Options - Leave these commented to make it user configurable in the gfxconf.h
+//#define GMOUSE_STMPE811_READ_PRESSURE FALSE
+//#define GMOUSE_STMPE811_SELF_CALIBRATE FALSE
+//#define GMOUSE_STMPE811_TEST_MODE FALSE
// If TRUE this board has the STMPE811 IRQ pin connected to a GPIO.
+// Note: For tested hardware this is unreliable and should be set to FALSE until tested.
+// Symptoms are that mouse readings just appear to stop for a bit. Lifting the touch
+// and re-applying the touch cause readings to start again.
#define GMOUSE_STMPE811_GPIO_IRQPIN FALSE
// If TRUE this is a really slow CPU and we should always clear the FIFO between reads.