From bda8c738b10c136ad1557acc1a07174ceb3e4f73 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sun, 8 Jul 2018 11:47:36 +1000 Subject: Added type gPowermode to replace V2.x powermode_t, and values gPowerXXX replace powerXXX --- drivers/gdisp/ILI93xx/gdisp_lld_ILI93xx.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'drivers/gdisp/ILI93xx/gdisp_lld_ILI93xx.c') diff --git a/drivers/gdisp/ILI93xx/gdisp_lld_ILI93xx.c b/drivers/gdisp/ILI93xx/gdisp_lld_ILI93xx.c index 79fcd6a4..bda49d60 100644 --- a/drivers/gdisp/ILI93xx/gdisp_lld_ILI93xx.c +++ b/drivers/gdisp/ILI93xx/gdisp_lld_ILI93xx.c @@ -257,7 +257,7 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) { g->g.Width = GDISP_SCREEN_WIDTH; g->g.Height = GDISP_SCREEN_HEIGHT; g->g.Orientation = GDISP_ROTATE_0; - g->g.Powermode = powerOn; + g->g.Powermode = gPowerOn; g->g.Backlight = GDISP_INITIAL_BACKLIGHT; g->g.Contrast = GDISP_INITIAL_CONTRAST; @@ -305,10 +305,10 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) { LLDSPEC void gdisp_lld_control(GDisplay *g) { switch(g->p.x) { case GDISP_CONTROL_POWER: - if (g->g.Powermode == (powermode_t)g->p.ptr) + if (g->g.Powermode == (gPowermode)g->p.ptr) return; - switch((powermode_t)g->p.ptr) { - case powerOff: + switch((gPowermode)g->p.ptr) { + case gPowerOff: acquire_bus(g); write_reg(g, 0x07, 0x0000); write_reg(g, 0x10, 0x0000); @@ -319,7 +319,7 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) { set_backlight(g, 0); break; - case powerOn: + case gPowerOn: //*************Power On sequence ******************// acquire_bus(g); write_reg(g, 0x10, 0x0000); /* SAP, BT[3:0], AP, DSTB, SLP, STB */ @@ -340,7 +340,7 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) { set_backlight(g, g->g.Backlight); break; - case powerSleep: + case gPowerSleep: acquire_bus(g); write_reg(g, 0x07, 0x0000); /* display OFF */ write_reg(g, 0x10, 0x0000); /* SAP, BT[3:0], APE, AP, DSTB, SLP */ @@ -353,7 +353,7 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) { set_backlight(g, g->g.Backlight); break; - case powerDeepSleep: + case gPowerDeepSleep: acquire_bus(g); write_reg(g, 0x07, 0x0000); /* display OFF */ write_reg(g, 0x10, 0x0000); /* SAP, BT[3:0], APE, AP, DSTB, SLP */ @@ -369,7 +369,7 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) { default: return; } - g->g.Powermode = (powermode_t)g->p.ptr; + g->g.Powermode = (gPowermode)g->p.ptr; return; case GDISP_CONTROL_ORIENTATION: -- cgit v1.2.3