aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/SSD1848/gdisp_lld_SSD1848.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gdisp/SSD1848/gdisp_lld_SSD1848.c')
-rw-r--r--drivers/gdisp/SSD1848/gdisp_lld_SSD1848.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gdisp/SSD1848/gdisp_lld_SSD1848.c b/drivers/gdisp/SSD1848/gdisp_lld_SSD1848.c
index 0fa8c775..e2b86968 100644
--- a/drivers/gdisp/SSD1848/gdisp_lld_SSD1848.c
+++ b/drivers/gdisp/SSD1848/gdisp_lld_SSD1848.c
@@ -214,7 +214,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;
return gTrue;
@@ -471,11 +471,11 @@ 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)
+ switch ((gPowermode) g->p.ptr)
{
- case powerOff:
+ case gPowerOff:
acquire_bus (g);
spi_write_cmd (g, SSD1848_SETCONTRAST);
spi_write_data2 (g, 0x00, 0x00); /* Drop the contrast & gain */
@@ -484,14 +484,14 @@ LLDSPEC void gdisp_lld_control (GDisplay *g)
release_bus (g);
break;
- case powerSleep:
- case powerDeepSleep:
+ case gPowerSleep:
+ case gPowerDeepSleep:
acquire_bus (g);
spi_write_cmd (g, SSD1848_ENTERSLEEP);
release_bus (g);
break;
- case powerOn:
+ case gPowerOn:
acquire_bus (g);
spi_write_cmd (g, SSD1848_EXITSLEEP); /* need this in case we were in 'normal' sleep mode */
gfxSleepMilliseconds (5);
@@ -502,7 +502,7 @@ LLDSPEC void gdisp_lld_control (GDisplay *g)
default:
return;
}
- g->g.Powermode = (powermode_t) g->p.ptr;
+ g->g.Powermode = (gPowermode) g->p.ptr;
return;
case GDISP_CONTROL_ORIENTATION: