diff options
Diffstat (limited to 'drivers/gdisp/SSD1963')
-rw-r--r-- | drivers/gdisp/SSD1963/board_SSD1963_template.h | 6 | ||||
-rw-r--r-- | drivers/gdisp/SSD1963/gdisp_lld_SSD1963.c | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/drivers/gdisp/SSD1963/board_SSD1963_template.h b/drivers/gdisp/SSD1963/board_SSD1963_template.h index 4c615438..7d5fbfb1 100644 --- a/drivers/gdisp/SSD1963/board_SSD1963_template.h +++ b/drivers/gdisp/SSD1963/board_SSD1963_template.h @@ -17,8 +17,8 @@ static const LCD_Parameters DisplayTimings[] = { 2, 2, 10, // Vertical Timings (back porch, front porch, pulse) CALC_PERIOD(272,2,2,10), // Total Vertical Period (calculated from above line) CALC_FPR(480,272,2,2,41,2,2,10,60ULL), // FPR - the 60ULL is the frames per second. Note the ULL! - FALSE, // Flip horizontally - FALSE // Flip vertically + gFalse, // Flip horizontally + gFalse // Flip vertically }, }; @@ -30,7 +30,7 @@ static GFXINLINE void post_init_board(GDisplay *g) { (void) g; } -static GFXINLINE void setpin_reset(GDisplay *g, bool_t state) { +static GFXINLINE void setpin_reset(GDisplay *g, gBool state) { (void) g; (void) state; } diff --git a/drivers/gdisp/SSD1963/gdisp_lld_SSD1963.c b/drivers/gdisp/SSD1963/gdisp_lld_SSD1963.c index 35df624f..f5d9fd63 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld_SSD1963.c +++ b/drivers/gdisp/SSD1963/gdisp_lld_SSD1963.c @@ -45,8 +45,8 @@ typedef struct LCD_Parameters { #define LCD_PANEL_TYPE_SERIAL_RGB_MODE ((1<<6) << 8) // Serial RGB mode #define LCD_PANEL_TYPE_SERIAL_RGB_DUMMY_MODE (((1<<5) | (1<<6)) << 8) // Serial RGB+dummy mode - bool_t flipHorz; // Flipping the display horizontally - bool_t flipVert; // Flipping the display vertically + gBool flipHorz; // Flipping the display horizontally + gBool flipVert; // Flipping the display vertically } LCD_Parameters; #include "board_SSD1963.h" @@ -149,7 +149,7 @@ static GFXINLINE void set_backlight(GDisplay *g, uint8_t percent) { /* Driver exported functions. */ /*===========================================================================*/ -LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { +LLDSPEC gBool gdisp_lld_init(GDisplay *g) { LCD_Parameters * lcdp; /* @@ -168,9 +168,9 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { #if !GDISP_SSD1963_NO_INIT // Hardware reset - setpin_reset(g, TRUE); + setpin_reset(g, gTrue); gfxSleepMilliseconds(200); - setpin_reset(g, FALSE); + setpin_reset(g, gFalse); gfxSleepMilliseconds(200); #endif @@ -271,7 +271,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { g->g.Powermode = powerOn; g->g.Backlight = GDISP_INITIAL_BACKLIGHT; g->g.Contrast = GDISP_INITIAL_CONTRAST; - return TRUE; + return gTrue; } #if GDISP_HARDWARE_STREAM_WRITE |