aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ginput
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-02-27 17:44:21 +1000
committerinmarket <andrewh@inmarket.com.au>2018-02-27 17:44:21 +1000
commitf265924396167729e8d9fb36a0383263f36c1270 (patch)
tree28843eb24b18999cf0217ecb0fe935f133901066 /drivers/ginput
parent14786e97b618b8bc2a0ff1c732d45288fe550e33 (diff)
downloaduGFX-f265924396167729e8d9fb36a0383263f36c1270.tar.gz
uGFX-f265924396167729e8d9fb36a0383263f36c1270.tar.bz2
uGFX-f265924396167729e8d9fb36a0383263f36c1270.zip
First set of V3 macro changes
Diffstat (limited to 'drivers/ginput')
-rw-r--r--drivers/ginput/dial/GADC/ginput_lld_dial_board_template.h2
-rw-r--r--drivers/ginput/dial/GADC/readme.txt6
-rw-r--r--drivers/ginput/toggle/Pal/readme.txt4
-rw-r--r--drivers/ginput/touch/FT5336/gmouse_lld_FT5336_board_template.h4
-rw-r--r--drivers/ginput/touch/FT5x06/gmouse_lld_FT5x06_board_template.h4
-rw-r--r--drivers/ginput/touch/FT6x06/gmouse_lld_FT6x06_board_template.h4
-rw-r--r--drivers/ginput/touch/Linux-Event/gmouse_lld_linux_event_board_template.h6
-rw-r--r--drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610.c6
-rw-r--r--drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610_board_template.h16
-rw-r--r--drivers/ginput/touch/STMPE610/readme.txt6
-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
13 files changed, 43 insertions, 43 deletions
diff --git a/drivers/ginput/dial/GADC/ginput_lld_dial_board_template.h b/drivers/ginput/dial/GADC/ginput_lld_dial_board_template.h
index e10e52f6..28f3e258 100644
--- a/drivers/ginput/dial/GADC/ginput_lld_dial_board_template.h
+++ b/drivers/ginput/dial/GADC/ginput_lld_dial_board_template.h
@@ -18,7 +18,7 @@
#define GINPUT_DIAL_NUM_PORTS 1
#define GINPUT_DIAL_DEVICE0 GADC_PHYSDEV_DIAL
#define GINPUT_DIAL_POLL_PERIOD 200
-#define GINPUT_DIAL_CYCLE_POLL FALSE
+#define GINPUT_DIAL_CYCLE_POLL GFXOFF
#endif /* GFX_USE_GINPUT && GINPUT_NEED_DIAL */
diff --git a/drivers/ginput/dial/GADC/readme.txt b/drivers/ginput/dial/GADC/readme.txt
index 25558dbc..5bfce2ec 100644
--- a/drivers/ginput/dial/GADC/readme.txt
+++ b/drivers/ginput/dial/GADC/readme.txt
@@ -1,9 +1,9 @@
To use this driver:
1. Add in your gfxconf.h:
- a) #define GFX_USE_GINPUT TRUE
- #define GINPUT_NEED_DIAL TRUE
- #define GINPUT_NEED_GADC TRUE
+ a) #define GFX_USE_GINPUT GFXON
+ #define GINPUT_NEED_DIAL GFXON
+ #define GINPUT_NEED_GADC GFXON
d) If you are not using a known board then create a ginput_lld_toggle_board.h file
and ensure it is on your include path.
Use the ginput_lld_dial_board_example.h file as a basis.
diff --git a/drivers/ginput/toggle/Pal/readme.txt b/drivers/ginput/toggle/Pal/readme.txt
index 3cc9bcd9..0eeb341d 100644
--- a/drivers/ginput/toggle/Pal/readme.txt
+++ b/drivers/ginput/toggle/Pal/readme.txt
@@ -1,8 +1,8 @@
To use this driver:
1. Add in your gfxconf.h:
- a) #define GFX_USE_GINPUT TRUE
- #define GINPUT_NEED_TOGGLE TRUE
+ a) #define GFX_USE_GINPUT GFXON
+ #define GINPUT_NEED_TOGGLE GFXON
d) If you are not using a known board then create a ginput_lld_toggle_board.h file
and ensure it is on your include path.
Use the ginput_lld_toggle_board_example.h file as a basis.
diff --git a/drivers/ginput/touch/FT5336/gmouse_lld_FT5336_board_template.h b/drivers/ginput/touch/FT5336/gmouse_lld_FT5336_board_template.h
index 1daa0b1e..fb3a8b52 100644
--- a/drivers/ginput/touch/FT5336/gmouse_lld_FT5336_board_template.h
+++ b/drivers/ginput/touch/FT5336/gmouse_lld_FT5336_board_template.h
@@ -19,11 +19,11 @@
// How much extra data to allocate at the end of the GMouse structure for the board's use
#define GMOUSE_FT5336_BOARD_DATA_SIZE 0
-// Set this to TRUE if you want self-calibration.
+// Set this to GFXON 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_FT5336_SELF_CALIBRATE FALSE
+#define GMOUSE_FT5336_SELF_CALIBRATE GFXOFF
static bool_t init_board(GMouse* m, unsigned instance)
{
diff --git a/drivers/ginput/touch/FT5x06/gmouse_lld_FT5x06_board_template.h b/drivers/ginput/touch/FT5x06/gmouse_lld_FT5x06_board_template.h
index 9042f893..728fa695 100644
--- a/drivers/ginput/touch/FT5x06/gmouse_lld_FT5x06_board_template.h
+++ b/drivers/ginput/touch/FT5x06/gmouse_lld_FT5x06_board_template.h
@@ -19,11 +19,11 @@
// How much extra data to allocate at the end of the GMouse structure for the board's use
#define GMOUSE_FT5x06_BOARD_DATA_SIZE 0
-// Set this to TRUE if you want self-calibration.
+// Set this to GFXON 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_FT5x06_SELF_CALIBRATE FALSE
+#define GMOUSE_FT5x06_SELF_CALIBRATE GFXOFF
static bool_t init_board(GMouse* m, unsigned driverinstance) {
}
diff --git a/drivers/ginput/touch/FT6x06/gmouse_lld_FT6x06_board_template.h b/drivers/ginput/touch/FT6x06/gmouse_lld_FT6x06_board_template.h
index 7c0b6663..85b54652 100644
--- a/drivers/ginput/touch/FT6x06/gmouse_lld_FT6x06_board_template.h
+++ b/drivers/ginput/touch/FT6x06/gmouse_lld_FT6x06_board_template.h
@@ -19,11 +19,11 @@
// How much extra data to allocate at the end of the GMouse structure for the board's use
#define GMOUSE_FT6x06_BOARD_DATA_SIZE 0
-// Set this to TRUE if you want self-calibration.
+// Set this to GFXON 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_FT6x06_SELF_CALIBRATE FALSE
+#define GMOUSE_FT6x06_SELF_CALIBRATE GFXOFF
static bool_t init_board(GMouse* m, unsigned driverinstance) {
}
diff --git a/drivers/ginput/touch/Linux-Event/gmouse_lld_linux_event_board_template.h b/drivers/ginput/touch/Linux-Event/gmouse_lld_linux_event_board_template.h
index c6bf5a7b..9f3acdd3 100644
--- a/drivers/ginput/touch/Linux-Event/gmouse_lld_linux_event_board_template.h
+++ b/drivers/ginput/touch/Linux-Event/gmouse_lld_linux_event_board_template.h
@@ -21,12 +21,12 @@
// The linux device input used for touchscreen
#define GMOUSE_LINUX_EVENT_DEVICE "/dev/input/event0"
-// Set this to TRUE if you want self-calibration.
+// Set this to GFXON 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_LINUX_EVENT_SELF_CALIBRATE FALSE
+#define GMOUSE_LINUX_EVENT_SELF_CALIBRATE GFXOFF
-#define GMOUSE_LINUX_EVENT_FINGERMODE TRUE
+#define GMOUSE_LINUX_EVENT_FINGERMODE GFXON
#endif /* _GINPUT_LLD_MOUSE_BOARD_H */
diff --git a/drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610.c b/drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610.c
index 2eb8f429..896074b9 100644
--- a/drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610.c
+++ b/drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610.c
@@ -20,13 +20,13 @@
// Extra settings for the users gfxconf.h file. See readme.txt
#ifndef GMOUSE_STMPE610_SELF_CALIBRATE
- #define GMOUSE_STMPE610_SELF_CALIBRATE FALSE
+ #define GMOUSE_STMPE610_SELF_CALIBRATE GFXOFF
#endif
#ifndef GMOUSE_STMPE610_READ_PRESSURE
- #define GMOUSE_STMPE610_READ_PRESSURE FALSE
+ #define GMOUSE_STMPE610_READ_PRESSURE GFXOFF
#endif
#ifndef GMOUSE_STMPE610_TEST_MODE
- #define GMOUSE_STMPE610_TEST_MODE FALSE
+ #define GMOUSE_STMPE610_TEST_MODE GFXOFF
#endif
/**
diff --git a/drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610_board_template.h b/drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610_board_template.h
index f426176d..14917e53 100644
--- a/drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610_board_template.h
+++ b/drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610_board_template.h
@@ -20,18 +20,18 @@
#define GMOUSE_STMPE610_BOARD_DATA_SIZE 0
// Options - Leave these commented to make it user configurable in the gfxconf.h
-//#define GMOUSE_STMPE610_READ_PRESSURE FALSE
-//#define GMOUSE_STMPE610_SELF_CALIBRATE FALSE
-//#define GMOUSE_STMPE610_TEST_MODE FALSE
+//#define GMOUSE_STMPE610_READ_PRESSURE GFXOFF
+//#define GMOUSE_STMPE610_SELF_CALIBRATE GFXOFF
+//#define GMOUSE_STMPE610_TEST_MODE GFXOFF
-// If TRUE this board has the STMPE610 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 STMPE610 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_STMPE610_GPIO_IRQPIN FALSE
+#define GMOUSE_STMPE610_GPIO_IRQPIN GFXOFF
-// If TRUE this is a really slow CPU and we should always clear the FIFO between reads.
-#define GMOUSE_STMPE610_SLOW_CPU FALSE
+// If GFXON this is a really slow CPU and we should always clear the FIFO between reads.
+#define GMOUSE_STMPE610_SLOW_CPU GFXOFF
static bool_t init_board(GMouse* m, unsigned driverinstance) {
}
diff --git a/drivers/ginput/touch/STMPE610/readme.txt b/drivers/ginput/touch/STMPE610/readme.txt
index 03ff9019..a89b63de 100644
--- a/drivers/ginput/touch/STMPE610/readme.txt
+++ b/drivers/ginput/touch/STMPE610/readme.txt
@@ -1,11 +1,11 @@
This driver has a number of optional settings which can be specified in gfxconf.h:
-#define GMOUSE_STMPE610_READ_PRESSURE TRUE
+#define GMOUSE_STMPE610_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_STMPE610_SELF_CALIBRATE TRUE
+#define GMOUSE_STMPE610_SELF_CALIBRATE GFXON
Scale the touch readings to avoid calibration. This is not as accurate as real calibration.
-#define GMOUSE_STMPE610_TEST_MODE TRUE
+#define GMOUSE_STMPE610_TEST_MODE GFXON
Return raw readings for diagnostic use with the "touch_raw_readings" tool.
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.