diff options
Diffstat (limited to 'drivers/gdisp/ST7735')
-rw-r--r-- | drivers/gdisp/ST7735/gdisp_lld_ST7735.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gdisp/ST7735/gdisp_lld_ST7735.c b/drivers/gdisp/ST7735/gdisp_lld_ST7735.c index 983cfa1d..df4b75ef 100644 --- a/drivers/gdisp/ST7735/gdisp_lld_ST7735.c +++ b/drivers/gdisp/ST7735/gdisp_lld_ST7735.c @@ -261,7 +261,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; @@ -315,23 +315,23 @@ LLDSPEC void gdisp_lld_fill_area(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); // not implemented release_bus(g); set_backlight(g, 0); break; - case powerSleep: - case powerDeepSleep: + case gPowerSleep: + case gPowerDeepSleep: // not implemented acquire_bus(g); release_bus(g); set_backlight(g, 0); break; - case powerOn: + case gPowerOn: acquire_bus(g); // not implemented release_bus(g); @@ -340,7 +340,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: |