aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/RA8875
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-10-17 17:38:44 +1000
committerinmarket <andrewh@inmarket.com.au>2013-10-17 17:38:44 +1000
commit3cacf9cee22806c6b7c814fdff9ae93dcac1c884 (patch)
tree25dd5e0903593f0b975114be53b5d330460de4c2 /drivers/gdisp/RA8875
parent8210418402dba694026de4c1945e824a9841fc66 (diff)
downloaduGFX-3cacf9cee22806c6b7c814fdff9ae93dcac1c884.tar.gz
uGFX-3cacf9cee22806c6b7c814fdff9ae93dcac1c884.tar.bz2
uGFX-3cacf9cee22806c6b7c814fdff9ae93dcac1c884.zip
Remove unnecessary file from RA8875 driver.
Diffstat (limited to 'drivers/gdisp/RA8875')
-rw-r--r--drivers/gdisp/RA8875/gdisp_lld.c5
-rw-r--r--drivers/gdisp/RA8875/ra8875.h18
2 files changed, 1 insertions, 22 deletions
diff --git a/drivers/gdisp/RA8875/gdisp_lld.c b/drivers/gdisp/RA8875/gdisp_lld.c
index b8072f51..4c146321 100644
--- a/drivers/gdisp/RA8875/gdisp_lld.c
+++ b/drivers/gdisp/RA8875/gdisp_lld.c
@@ -21,9 +21,6 @@
/* include the users board interface */
#include "board_ra8875.h"
-/* include our hardware definitions */
-#include "../drivers/gdisp/RA8875/ra8875.h"
-
/*===========================================================================*/
/* Driver local definitions. */
/*===========================================================================*/
@@ -54,7 +51,7 @@
static inline void set_cursor(GDisplay *g) {
write_reg16(g, 0x46, g->p.x);
write_reg16(g, 0x48, g->p.y);
- write_index(g, RA8875_WRITE_MEMORY_START);
+ write_index(g, 0x02);
}
static inline void set_viewport(GDisplay* g) {
diff --git a/drivers/gdisp/RA8875/ra8875.h b/drivers/gdisp/RA8875/ra8875.h
deleted file mode 100644
index 43210b66..00000000
--- a/drivers/gdisp/RA8875/ra8875.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * This file is subject to the terms of the GFX License. If a copy of
- * the license was not distributed with this file, you can obtain one at:
- *
- * http://ugfx.org/license.html
- */
-
-#ifndef RA8875_H
-#define RA8875_H
-
-#define mHIGH(x) (x >> 8)
-#define mLOW(x) (x & 0xFF)
-
-#define RA8875_WRITE_MEMORY_START 0x0002
-#define RA8875_READ_MEMORY_START 0x0002
-
-#endif
-