aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/PCD8544/gdisp_lld_PCD8544.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gdisp/PCD8544/gdisp_lld_PCD8544.c')
-rw-r--r--drivers/gdisp/PCD8544/gdisp_lld_PCD8544.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gdisp/PCD8544/gdisp_lld_PCD8544.c b/drivers/gdisp/PCD8544/gdisp_lld_PCD8544.c
index cdf7bbe0..f05d7186 100644
--- a/drivers/gdisp/PCD8544/gdisp_lld_PCD8544.c
+++ b/drivers/gdisp/PCD8544/gdisp_lld_PCD8544.c
@@ -87,7 +87,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;
@@ -185,21 +185,21 @@ 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:
- case powerSleep:
- case powerDeepSleep:
+ switch((gPowermode)g->p.ptr) {
+ case gPowerOff:
+ case gPowerSleep:
+ case gPowerDeepSleep:
write_cmd(g, PCD8544_SET_FUNC | PCD8544_PD);
break;
- case powerOn:
+ case gPowerOn:
write_cmd(g, PCD8544_SET_FUNC);
break;
default:
return;
}
- g->g.Powermode = (powermode_t)g->p.ptr;
+ g->g.Powermode = (gPowermode)g->p.ptr;
return;
case GDISP_CONTROL_ORIENTATION: