From 599a163181284b5bc97667e49be4ddce0195848a Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 15 Nov 2014 15:19:46 +1000 Subject: Spacing, comments and spelling mistakes --- drivers/gdisp/SSD1963/readme.txt | 7 +++++++ drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c | 16 ++++------------ 2 files changed, 11 insertions(+), 12 deletions(-) create mode 100644 drivers/gdisp/SSD1963/readme.txt (limited to 'drivers') diff --git a/drivers/gdisp/SSD1963/readme.txt b/drivers/gdisp/SSD1963/readme.txt new file mode 100644 index 00000000..4eda17db --- /dev/null +++ b/drivers/gdisp/SSD1963/readme.txt @@ -0,0 +1,7 @@ +SSD1963 driver modified to handle Displaytech INTXXX displays, which self-initialise. + +To use this mode, add: + +#define GDISP_SSD1963_NO_INIT TRUE + +...either in the board-specific header file, or in gfxconf.h diff --git a/drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c b/drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c index acc990c5..12f45645 100644 --- a/drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c +++ b/drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c @@ -18,17 +18,14 @@ // Get the hardware interface #include "gmouse_lld_MAX11802_board.h" -/* Register values to set */ -#define MAX11802_MODE 0x0E /* Direct conversion with averaging */ +// 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 - - - +#define Z_MAX 1 static bool_t MouseInit(GMouse* m, unsigned driverinstance) { @@ -71,9 +68,6 @@ static bool_t MouseInit(GMouse* m, unsigned driverinstance) return TRUE; } - - - static bool_t read_xyz(GMouse* m, GMouseReading* pdr) { uint8_t readyCount; @@ -119,7 +113,7 @@ static bool_t read_xyz(GMouse* m, GMouseReading* pdr) aquire_bus(m); gfintWriteCommand(m, MAX11802_CMD_XPOSITION); #if defined(GINPUT_MOUSE_YX_INVERTED) && GINPUT_MOUSE_YX_INVERTED - pdr->y = read_value(m); + pdr->y = read_value(m); pdr->x = read_value(m); #else pdr->x = read_value(m); @@ -166,8 +160,6 @@ static bool_t read_xyz(GMouse* m, GMouseReading* pdr) return TRUE; } - - const GMouseVMT const GMOUSE_DRIVER_VMT[1] = {{ { GDRIVER_TYPE_TOUCH, -- cgit v1.2.3