aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/SPFD54124B/gdisp_lld_SPFD54124B.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gdisp/SPFD54124B/gdisp_lld_SPFD54124B.c')
-rw-r--r--drivers/gdisp/SPFD54124B/gdisp_lld_SPFD54124B.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/gdisp/SPFD54124B/gdisp_lld_SPFD54124B.c b/drivers/gdisp/SPFD54124B/gdisp_lld_SPFD54124B.c
index 037a1265..c6b37c98 100644
--- a/drivers/gdisp/SPFD54124B/gdisp_lld_SPFD54124B.c
+++ b/drivers/gdisp/SPFD54124B/gdisp_lld_SPFD54124B.c
@@ -136,7 +136,7 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g)
// Initialise the GDISP structure to match
g->g.Width = GDISP_SCREEN_WIDTH;
g->g.Height = GDISP_SCREEN_HEIGHT;
- g->g.Orientation = GDISP_ROTATE_0;
+ g->g.Orientation = gOrientation0;
g->g.Powermode = gPowerOn;
g->g.Backlight = GDISP_INITIAL_BACKLIGHT;
g->g.Contrast = GDISP_INITIAL_CONTRAST;
@@ -208,11 +208,11 @@ LLDSPEC void gdisp_lld_control(GDisplay *g)
return;
case GDISP_CONTROL_ORIENTATION:
- if (g->g.Orientation == (orientation_t)g->p.ptr)
+ if (g->g.Orientation == (gOrientation)g->p.ptr)
return;
- switch((orientation_t)g->p.ptr) {
- case GDISP_ROTATE_0:
+ switch((gOrientation)g->p.ptr) {
+ case gOrientation0:
acquire_bus(g);
write_index(g, SPFD54124B_CMD_MADCTR);
write_index(g, 0x0100);
@@ -221,7 +221,7 @@ LLDSPEC void gdisp_lld_control(GDisplay *g)
g->g.Width = GDISP_SCREEN_WIDTH;
break;
- case GDISP_ROTATE_90:
+ case gOrientation90:
acquire_bus(g);
write_index(g, SPFD54124B_CMD_MADCTR);
write_index(g, 0x01A0);
@@ -230,7 +230,7 @@ LLDSPEC void gdisp_lld_control(GDisplay *g)
g->g.Width = GDISP_SCREEN_HEIGHT;
break;
- case GDISP_ROTATE_180:
+ case gOrientation180:
acquire_bus(g);
write_index(g, SPFD54124B_CMD_MADCTR);
write_index(g, 0x01C0);
@@ -239,7 +239,7 @@ LLDSPEC void gdisp_lld_control(GDisplay *g)
g->g.Width = GDISP_SCREEN_WIDTH;
break;
- case GDISP_ROTATE_270:
+ case gOrientation270:
acquire_bus(g);
write_index(g, SPFD54124B_CMD_MADCTR);
write_index(g, 0x0160);
@@ -249,11 +249,11 @@ LLDSPEC void gdisp_lld_control(GDisplay *g)
break;
default:
- // GDISP_ROTATE_PORTRAIT and GDISP_ROTATE_LANDSCAPE are handled by the higher level code
+ // gOrientationPortrait and gOrientationLandscape are handled by the higher level code
return;
}
- g->g.Orientation = (orientation_t)g->p.ptr;
+ g->g.Orientation = (gOrientation)g->p.ptr;
return;
}