Some MAX11802 fixes.

ugfx_release_2.6
inmarket 2014-11-10 14:42:07 +10:00
parent bc75dbc24c
commit 04334f284c
2 changed files with 18 additions and 11 deletions

View File

@ -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

View File

@ -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) {
}