diff options
Diffstat (limited to 'drivers/gdisp/SSD1322/gdisp_lld_SSD1322.c')
-rw-r--r-- | drivers/gdisp/SSD1322/gdisp_lld_SSD1322.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gdisp/SSD1322/gdisp_lld_SSD1322.c b/drivers/gdisp/SSD1322/gdisp_lld_SSD1322.c index caaf01d8..2a956687 100644 --- a/drivers/gdisp/SSD1322/gdisp_lld_SSD1322.c +++ b/drivers/gdisp/SSD1322/gdisp_lld_SSD1322.c @@ -149,7 +149,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_180; - g->g.Powermode = powerOn; + g->g.Powermode = gPowerOn; g->g.Backlight = GDISP_INITIAL_BACKLIGHT; g->g.Contrast = GDISP_INITIAL_CONTRAST; return gTrue; @@ -251,17 +251,17 @@ 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: acquire_bus(g); write_cmd(g, CMD_SET_DISPLAY_MODE_OFF); release_bus(g); break; - case powerOn: + case gPowerOn: acquire_bus(g); write_cmd(g, CMD_SET_DISPLAY_MODE_ON); release_bus(g); @@ -269,7 +269,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: |