aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ginput
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-11-10 14:42:07 +1000
committerinmarket <andrewh@inmarket.com.au>2014-11-10 14:42:07 +1000
commit04334f284c8c4236e2a07b6611ddb790ee05db72 (patch)
tree0baf7c7a132138efc5a5a223f986795521108187 /drivers/ginput
parentbc75dbc24cf7abe698b2b60396a55a4d007243a5 (diff)
downloaduGFX-04334f284c8c4236e2a07b6611ddb790ee05db72.tar.gz
uGFX-04334f284c8c4236e2a07b6611ddb790ee05db72.tar.bz2
uGFX-04334f284c8c4236e2a07b6611ddb790ee05db72.zip
Some MAX11802 fixes.
Diffstat (limited to 'drivers/ginput')
-rw-r--r--drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c6
-rw-r--r--drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802_board_template.h23
2 files changed, 18 insertions, 11 deletions
diff --git a/drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c b/drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c
index 73d8d4e6..d1435628 100644
--- a/drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c
+++ b/drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c
@@ -18,6 +18,12 @@
// Get the hardware interface
#include "gmouse_lld_MAX11802_board.h"
+// Register values to set
+#define MAX11802_MODE 0x0E // Direct conversion with averaging
+#define MAX11802_AVG 0x55
+#define MAX11802_TIMING 0x77
+#define MAX11802_DELAY 0x55
+
#define Z_MIN 0
#define Z_MAX 1
diff --git a/drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802_board_template.h b/drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802_board_template.h
index bea6cc6b..6171089f 100644
--- a/drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802_board_template.h
+++ b/drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802_board_template.h
@@ -16,27 +16,28 @@
#define GMOUSE_MAX11802_FINGER_CLICK_ERROR 18
#define GMOUSE_MAX11802_FINGER_MOVE_ERROR 14
-// Register values to set
-#define MAX11802_MODE 0x0E // Direct conversion with averaging
-#define MAX11802_AVG 0x55
-#define MAX11802_TIMING 0x77
-#define MAX11802_DELAY 0x55
-
// How much extra data to allocate at the end of the GMouse structure for the board's use
#define GMOUSE_MAX11802_BOARD_DATA_SIZE 0
-static inline void init_board(GMouse* m) {
-
-}
-
-static inline bool_t getpin_pressed(GMouse* m) {
+/**
+ * Init the board
+ *
+ * Returns TRUE on success, FALSE on failure
+ */
+static inline bool_t init_board(GMouse* m, unsigned driverinstance) {
}
+/**
+ * Acquire the bus
+ */
static inline void aquire_bus(GMouse* m) {
}
+/**
+ * Release the bus
+ */
static inline void release_bus(GMouse* m) {
}