aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-11-15 15:19:46 +1000
committerinmarket <andrewh@inmarket.com.au>2014-11-15 15:19:46 +1000
commit599a163181284b5bc97667e49be4ddce0195848a (patch)
tree0680a5409657bee46ed65962f4f4f4ccc5640046 /drivers
parent0d90611c824b33c8df2da06e1d02c7cda11022be (diff)
downloaduGFX-599a163181284b5bc97667e49be4ddce0195848a.tar.gz
uGFX-599a163181284b5bc97667e49be4ddce0195848a.tar.bz2
uGFX-599a163181284b5bc97667e49be4ddce0195848a.zip
Spacing, comments and spelling mistakes
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gdisp/SSD1963/readme.txt7
-rw-r--r--drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c16
2 files changed, 11 insertions, 12 deletions
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,