aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/ILI9488/gdisp_lld_ILI9488.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gdisp/ILI9488/gdisp_lld_ILI9488.c')
-rw-r--r--drivers/gdisp/ILI9488/gdisp_lld_ILI9488.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gdisp/ILI9488/gdisp_lld_ILI9488.c b/drivers/gdisp/ILI9488/gdisp_lld_ILI9488.c
index 9291898e..e32ab556 100644
--- a/drivers/gdisp/ILI9488/gdisp_lld_ILI9488.c
+++ b/drivers/gdisp/ILI9488/gdisp_lld_ILI9488.c
@@ -190,7 +190,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;
@@ -237,11 +237,11 @@ 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_index(g, 0x28);
gfxSleepMilliseconds(10);
@@ -249,17 +249,17 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) {
release_bus(g);
break;
- case powerOn:
+ case gPowerOn:
acquire_bus(g);
write_index(g, 0x11);
gfxSleepMilliseconds(120);
write_index(g, 0x29);
release_bus(g);
- if (g->g.Powermode != powerSleep)
+ if (g->g.Powermode != gPowerSleep)
gdisp_lld_init(g);
break;
- case powerSleep:
+ case gPowerSleep:
acquire_bus(g);
write_index(g, 0x28);
gfxSleepMilliseconds(10);
@@ -271,7 +271,7 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) {
return;
}
- g->g.Powermode = (powermode_t)g->p.ptr;
+ g->g.Powermode = (gPowermode)g->p.ptr;
return;
case GDISP_CONTROL_ORIENTATION: