aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ginput/touch/STMPE811
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ginput/touch/STMPE811')
-rw-r--r--drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c6
-rw-r--r--drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811_board_template.h16
-rw-r--r--drivers/ginput/touch/STMPE811/readme.txt6
3 files changed, 14 insertions, 14 deletions
diff --git a/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c b/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c
index 8cb1b70e..90496b29 100644
--- a/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c
+++ b/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c
@@ -20,13 +20,13 @@
// Extra settings for the users gfxconf.h file. See readme.txt
#ifndef GMOUSE_STMPE811_SELF_CALIBRATE
- #define GMOUSE_STMPE811_SELF_CALIBRATE FALSE
+ #define GMOUSE_STMPE811_SELF_CALIBRATE GFXOFF
#endif
#ifndef GMOUSE_STMPE811_READ_PRESSURE
- #define GMOUSE_STMPE811_READ_PRESSURE FALSE
+ #define GMOUSE_STMPE811_READ_PRESSURE GFXOFF
#endif
#ifndef GMOUSE_STMPE811_TEST_MODE
- #define GMOUSE_STMPE811_TEST_MODE FALSE
+ #define GMOUSE_STMPE811_TEST_MODE GFXOFF
#endif
/**
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 0b307ed2..fb979f8b 100644
--- a/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811_board_template.h
+++ b/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811_board_template.h
@@ -20,18 +20,18 @@
#define GMOUSE_STMPE811_BOARD_DATA_SIZE 0
// 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
+//#define GMOUSE_STMPE811_READ_PRESSURE GFXOFF
+//#define GMOUSE_STMPE811_SELF_CALIBRATE GFXOFF
+//#define GMOUSE_STMPE811_TEST_MODE GFXOFF
-// 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.
+// If GFXON this board has the STMPE811 IRQ pin connected to a GPIO.
+// Note: For tested hardware this is unreliable and should be set to GFXOFF 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
+#define GMOUSE_STMPE811_GPIO_IRQPIN GFXOFF
-// If TRUE this is a really slow CPU and we should always clear the FIFO between reads.
-#define GMOUSE_STMPE811_SLOW_CPU FALSE
+// If GFXON this is a really slow CPU and we should always clear the FIFO between reads.
+#define GMOUSE_STMPE811_SLOW_CPU GFXOFF
static bool_t init_board(GMouse* m, unsigned driverinstance) {
}
diff --git a/drivers/ginput/touch/STMPE811/readme.txt b/drivers/ginput/touch/STMPE811/readme.txt
index 60d7f603..250dd844 100644
--- a/drivers/ginput/touch/STMPE811/readme.txt
+++ b/drivers/ginput/touch/STMPE811/readme.txt
@@ -1,11 +1,11 @@
This driver has a number of optional settings which can be specified in gfxconf.h:
-#define GMOUSE_STMPE811_READ_PRESSURE TRUE
+#define GMOUSE_STMPE811_READ_PRESSURE GFXON
Returns pressure values when the touch is down. On tested boards this ranges from 90 to 150. 255 is touch off.
-#define GMOUSE_STMPE811_SELF_CALIBRATE TRUE
+#define GMOUSE_STMPE811_SELF_CALIBRATE GFXON
Scale the touch readings to avoid calibration. This is not as accurate as real calibration.
-#define GMOUSE_STMPE811_TEST_MODE TRUE
+#define GMOUSE_STMPE811_TEST_MODE GFXON
Return raw readings for diagnostic use with the "touch_raw_readings" tool.