aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ginput/touch/MCU/gmouse_lld_MCU_board_template.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-10-13 16:35:57 +1000
committerinmarket <andrewh@inmarket.com.au>2014-10-13 16:35:57 +1000
commiteb0cc2187236fb0eac18bee536cf0d8f8cb7b7f8 (patch)
tree1cc61a9b3546a6e7cfd43368bb5d754308869b2e /drivers/ginput/touch/MCU/gmouse_lld_MCU_board_template.h
parentdc1ff7afa843b08a82874fcab7e06037aa663bac (diff)
downloaduGFX-eb0cc2187236fb0eac18bee536cf0d8f8cb7b7f8.tar.gz
uGFX-eb0cc2187236fb0eac18bee536cf0d8f8cb7b7f8.tar.bz2
uGFX-eb0cc2187236fb0eac18bee536cf0d8f8cb7b7f8.zip
Tidy up MCU mouse defines
Diffstat (limited to 'drivers/ginput/touch/MCU/gmouse_lld_MCU_board_template.h')
-rw-r--r--drivers/ginput/touch/MCU/gmouse_lld_MCU_board_template.h34
1 files changed, 14 insertions, 20 deletions
diff --git a/drivers/ginput/touch/MCU/gmouse_lld_MCU_board_template.h b/drivers/ginput/touch/MCU/gmouse_lld_MCU_board_template.h
index 5366b16c..07583fa9 100644
--- a/drivers/ginput/touch/MCU/gmouse_lld_MCU_board_template.h
+++ b/drivers/ginput/touch/MCU/gmouse_lld_MCU_board_template.h
@@ -8,26 +8,20 @@
#ifndef _LLD_GMOUSE_MCU_BOARD_H
#define _LLD_GMOUSE_MCU_BOARD_H
-// Either define your jitter settings here or define them in the config include file
-#if 0
- #include "gmouse_lld_MCU_config.h"
-#else
- #define GMOUSE_MCU_PEN_CALIBRATE_ERROR 2
- #define GMOUSE_MCU_PEN_CLICK_ERROR 2
- #define GMOUSE_MCU_PEN_MOVE_ERROR 2
- #define GMOUSE_MCU_FINGER_CALIBRATE_ERROR 4
- #define GMOUSE_MCU_FINGER_CLICK_ERROR 4
- #define GMOUSE_MCU_FINGER_MOVE_ERROR 4
-#endif
-
-// Now board specific settings...
-
-#define BOARD_DATA_SIZE 0 // How many extra bytes to add on the end of the mouse structure for the board's use
-
-#define Z_MIN 0 // The minimum Z reading
-#define Z_MAX 100 // The maximum Z reading
-#define Z_TOUCHON 80 // Values between this and Z_MAX are definitely pressed
-#define Z_TOUCHOFF 70 // Values between this and Z_MIN are definitely not pressed
+// Resolution and Accuracy Settings
+#define GMOUSE_MCU_PEN_CALIBRATE_ERROR 8
+#define GMOUSE_MCU_PEN_CLICK_ERROR 6
+#define GMOUSE_MCU_PEN_MOVE_ERROR 4
+#define GMOUSE_MCU_FINGER_CALIBRATE_ERROR 14
+#define GMOUSE_MCU_FINGER_CLICK_ERROR 18
+#define GMOUSE_MCU_FINGER_MOVE_ERROR 14
+#define GMOUSE_MCU_Z_MIN 0 // The minimum Z reading
+#define GMOUSE_MCU_Z_MAX 100 // The maximum Z reading
+#define GMOUSE_MCU_Z_TOUCHON 80 // Values between this and Z_MAX are definitely pressed
+#define GMOUSE_MCU_Z_TOUCHOFF 70 // Values between this and Z_MIN are definitely not pressed
+
+// How much extra data to allocate at the end of the GMouse structure for the board's use
+#define GMOUSE_MCU_BOARD_DATA_SIZE 0
static bool_t init_board(GMouse *m, unsigned driverinstance) {
}