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 -