diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-02-27 17:44:21 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-02-27 17:44:21 +1000 |
commit | f265924396167729e8d9fb36a0383263f36c1270 (patch) | |
tree | 28843eb24b18999cf0217ecb0fe935f133901066 /drivers/ginput/touch/STMPE610 | |
parent | 14786e97b618b8bc2a0ff1c732d45288fe550e33 (diff) | |
download | uGFX-f265924396167729e8d9fb36a0383263f36c1270.tar.gz uGFX-f265924396167729e8d9fb36a0383263f36c1270.tar.bz2 uGFX-f265924396167729e8d9fb36a0383263f36c1270.zip |
First set of V3 macro changes
Diffstat (limited to 'drivers/ginput/touch/STMPE610')
-rw-r--r-- | drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610.c | 6 | ||||
-rw-r--r-- | drivers/ginput/touch/STMPE610/gmouse_lld_STMPE610_board_template.h | 16 | ||||
-rw-r--r-- | drivers/ginput/touch/STMPE610/readme.txt | 6 |
3 files changed, 14 insertions, 14 deletions
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. |