diff options
Diffstat (limited to 'drivers/ginput/touch')
-rw-r--r-- | drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c | 6 | ||||
-rw-r--r-- | drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802_board_template.h | 23 |
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) { } |