aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/KS0108/gdisp_lld_KS0108.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gdisp/KS0108/gdisp_lld_KS0108.c')
-rw-r--r--drivers/gdisp/KS0108/gdisp_lld_KS0108.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gdisp/KS0108/gdisp_lld_KS0108.c b/drivers/gdisp/KS0108/gdisp_lld_KS0108.c
index 35726d85..8d6a004f 100644
--- a/drivers/gdisp/KS0108/gdisp_lld_KS0108.c
+++ b/drivers/gdisp/KS0108/gdisp_lld_KS0108.c
@@ -134,7 +134,7 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) {
// Initialise the GDISP structure
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;
@@ -263,11 +263,11 @@ LLDSPEC void gdisp_lld_draw_pixel(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, 0x36);
@@ -278,7 +278,7 @@ LLDSPEC void gdisp_lld_draw_pixel(GDisplay *g) {
g->g.Width = GDISP_SCREEN_WIDTH;
break;
- case GDISP_ROTATE_90:
+ case gOrientation90:
acquire_bus(g);
write_index(g, 0x36);
@@ -289,7 +289,7 @@ LLDSPEC void gdisp_lld_draw_pixel(GDisplay *g) {
g->g.Width = GDISP_SCREEN_HEIGHT;
break;
- case GDISP_ROTATE_180:
+ case gOrientation180:
acquire_bus(g);
write_index(g, 0x36);
@@ -300,7 +300,7 @@ LLDSPEC void gdisp_lld_draw_pixel(GDisplay *g) {
g->g.Width = GDISP_SCREEN_WIDTH;
break;
- case GDISP_ROTATE_270:
+ case gOrientation270:
acquire_bus(g);
write_index(g, 0x36);
@@ -315,7 +315,7 @@ LLDSPEC void gdisp_lld_draw_pixel(GDisplay *g) {
return;
}
- g->g.Orientation = (orientation_t)g->p.ptr;
+ g->g.Orientation = (gOrientation)g->p.ptr;
return;
default: