From 41271d632b74f5cf47c30d3b699eb6b2786f2136 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 23 Jun 2018 13:02:07 +1000 Subject: Added new type definitions - moving towards V3.0 --- drivers/gdisp/SSD1306/board_SSD1306_template.h | 2 +- drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'drivers/gdisp/SSD1306') diff --git a/drivers/gdisp/SSD1306/board_SSD1306_template.h b/drivers/gdisp/SSD1306/board_SSD1306_template.h index 9ab8fd30..a7efa52e 100644 --- a/drivers/gdisp/SSD1306/board_SSD1306_template.h +++ b/drivers/gdisp/SSD1306/board_SSD1306_template.h @@ -18,7 +18,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/SSD1306/gdisp_lld_SSD1306.c b/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c index 39d48317..9658cc26 100644 --- a/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c +++ b/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c @@ -71,7 +71,7 @@ * 64 * 128 / 8 = 1024 bytes. */ -LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { +LLDSPEC gBool gdisp_lld_init(GDisplay *g) { // The private area is the display surface. g->priv = gfxAlloc(GDISP_SCREEN_HEIGHT/8 * SSD1306_PAGE_WIDTH); @@ -90,9 +90,9 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { init_board(g); // Hardware reset - setpin_reset(g, TRUE); + setpin_reset(g, gTrue); gfxSleepMilliseconds(20); - setpin_reset(g, FALSE); + setpin_reset(g, gFalse); gfxSleepMilliseconds(20); acquire_bus(g); @@ -134,7 +134,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_FLUSH -- cgit v1.2.3