diff --git a/drivers/gdisp/Nokia6610GE8/gdisp_lld.c b/drivers/gdisp/Nokia6610GE8/gdisp_lld.c index bcccef80..a41ab3c9 100644 --- a/drivers/gdisp/Nokia6610GE8/gdisp_lld.c +++ b/drivers/gdisp/Nokia6610GE8/gdisp_lld.c @@ -65,8 +65,8 @@ #undef GDISP_SCREEN_WIDTH #endif -#include "GE8.h" #include "gdisp_lld_board.h" +#include "GE8.h" #define GDISP_SCAN_LINES 132 diff --git a/drivers/gdisp/SSD1289/gdisp_lld.c b/drivers/gdisp/SSD1289/gdisp_lld.c index 5743afc0..c724e80b 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld.c +++ b/drivers/gdisp/SSD1289/gdisp_lld.c @@ -19,6 +19,7 @@ #define GDISP_LLD_DECLARATIONS #include "gdisp/lld/gdisp_lld.h" +#include "gdisp_lld_board.h" /*===========================================================================*/ /* Driver local definitions. */ @@ -30,16 +31,17 @@ #ifndef GDISP_SCREEN_WIDTH #define GDISP_SCREEN_WIDTH 240 #endif - -#define GDISP_INITIAL_CONTRAST 50 -#define GDISP_INITIAL_BACKLIGHT 100 +#ifndef GDISP_INITIAL_CONTRAST + #define GDISP_INITIAL_CONTRAST 50 +#endif +#ifndef GDISP_INITIAL_BACKLIGHT + #define GDISP_INITIAL_BACKLIGHT 100 +#endif /*===========================================================================*/ /* Driver local functions. */ /*===========================================================================*/ -#include "gdisp_lld_board.h" - // Some common routines and macros #define write_reg(reg, data) { write_index(reg); write_data(data); } #define delay(us) gfxSleepMicroseconds(us)