diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-07-08 11:47:36 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-07-08 11:47:36 +1000 |
commit | bda8c738b10c136ad1557acc1a07174ceb3e4f73 (patch) | |
tree | cd686b249bfa8bde518668cfe5a7f9f3914ad13f /drivers/gdisp/SSD1351 | |
parent | f9c848e9851713d7a33962b9b4768c0a0d1751f1 (diff) | |
download | uGFX-bda8c738b10c136ad1557acc1a07174ceb3e4f73.tar.gz uGFX-bda8c738b10c136ad1557acc1a07174ceb3e4f73.tar.bz2 uGFX-bda8c738b10c136ad1557acc1a07174ceb3e4f73.zip |
Added type gPowermode to replace V2.x powermode_t, and values gPowerXXX replace powerXXX
Diffstat (limited to 'drivers/gdisp/SSD1351')
-rw-r--r-- | drivers/gdisp/SSD1351/gdisp_lld_SSD1351.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gdisp/SSD1351/gdisp_lld_SSD1351.c b/drivers/gdisp/SSD1351/gdisp_lld_SSD1351.c index 6513ba55..762eac19 100644 --- a/drivers/gdisp/SSD1351/gdisp_lld_SSD1351.c +++ b/drivers/gdisp/SSD1351/gdisp_lld_SSD1351.c @@ -132,7 +132,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; @@ -187,17 +187,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); //TODO release_bus(g); break; - case powerOn: + case gPowerOn: acquire_bus(g); //TODO release_bus(g); @@ -205,7 +205,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: |