diff options
Diffstat (limited to 'drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c')
-rw-r--r-- | drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c b/drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c index ee388dcc..ca2a16eb 100644 --- a/drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c +++ b/drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c @@ -97,7 +97,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; @@ -195,21 +195,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, PCF8812_SET_FUNC | PCF8812_PD); break; - case powerOn: + case gPowerOn: write_cmd(g, PCF8812_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: |