aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/TLS8204
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gdisp/TLS8204')
-rw-r--r--drivers/gdisp/TLS8204/board_TLS8204_template.h2
-rw-r--r--drivers/gdisp/TLS8204/gdisp_lld_TLS8204.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gdisp/TLS8204/board_TLS8204_template.h b/drivers/gdisp/TLS8204/board_TLS8204_template.h
index 01cafefa..0781238f 100644
--- a/drivers/gdisp/TLS8204/board_TLS8204_template.h
+++ b/drivers/gdisp/TLS8204/board_TLS8204_template.h
@@ -16,7 +16,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/TLS8204/gdisp_lld_TLS8204.c b/drivers/gdisp/TLS8204/gdisp_lld_TLS8204.c
index 3157eb73..be5bf3c7 100644
--- a/drivers/gdisp/TLS8204/gdisp_lld_TLS8204.c
+++ b/drivers/gdisp/TLS8204/gdisp_lld_TLS8204.c
@@ -53,7 +53,7 @@
#define GDISP_SCREEN_BYTES ((GDISP_TLS8204_WIDTH * GDISP_TLS8204_HEIGHT) / 8)
-LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
+LLDSPEC gBool gdisp_lld_init(GDisplay *g) {
// The private area is the display surface.
if (!(g->priv = gfxAlloc(GDISP_SCREEN_BYTES)))
gfxHalt("GDISP TLS8204: Failed to allocate private memory");
@@ -62,9 +62,9 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
init_board(g);
// Hardware reset
- setpin_reset(g, TRUE);
+ setpin_reset(g, gTrue);
gfxSleepMilliseconds(100);
- setpin_reset(g, FALSE);
+ setpin_reset(g, gFalse);
gfxSleepMilliseconds(100);
acquire_bus(g);
@@ -105,7 +105,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
g->g.Backlight = GDISP_INITIAL_BACKLIGHT;
g->g.Contrast = GDISP_INITIAL_CONTRAST;
- return TRUE;
+ return gTrue;
}
#if GDISP_HARDWARE_FLUSH